Skip to content

Commit 0acb570

Browse files
committed
Replace pages._meta syntax by pages["_meta"] to match Pico's docs
1 parent 8dee469 commit 0acb570

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

index.twig

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
88
{% if meta.description %}
99
<meta name="description" content="{{ meta.description|striptags }}" />
10-
{% endif %}{% if meta.robots %}
10+
{% endif %}
11+
{% if meta.robots %}
1112
<meta name="robots" content="{{ meta.robots }}" />
1213
{% endif %}
1314

@@ -27,17 +28,17 @@
2728
<span class="icon-menu" aria-hidden="true"></span>
2829
<span class="sr-only">Toggle Menu</span>
2930
</a>
30-
{% if pages._meta.meta.logo %}
31+
{% if pages["_meta"].meta.logo %}
3132
<div id="logo" aria-hidden="true">
3233
<a href="{{ "index"|link }}">
33-
<img src="{{ pages._meta.meta.logo|url }}" alt="" />
34+
<img src="{{ pages["_meta"].meta.logo|url }}" alt="" />
3435
</a>
3536
</div>
3637
{% endif %}
37-
<div id="title"{{ pages._meta.meta.tagline ? ' class="tagline"' }}>
38+
<div id="title"{{ pages["_meta"].meta.tagline ? ' class="tagline"' }}>
3839
<a href="{{ "index"|link }}">
3940
<h1>{{ site_title }}</h1>
40-
{{ pages._meta.meta.tagline|markdown }}
41+
{{ pages["_meta"].meta.tagline|markdown }}
4142
</a>
4243
</div>
4344
<div id="nav" role="navigation" tabindex="-1">
@@ -61,7 +62,7 @@
6162
<div id="footer">
6263
<div class="container">
6364
<div class="social">
64-
{% for social in pages._meta.meta.social %}
65+
{% for social in pages["_meta"].meta.social %}
6566
<a href="{{ social.url }}" title="{{ social.title }}" role="button">
6667
<span class="icon-{{ social.icon }}" aria-hidden="true"></span>
6768
<span class="sr-only">{{ social.title }}</span>

0 commit comments

Comments
 (0)