mirror of
https://github.com/picocms/pico-theme.git
synced 2025-08-06 16:56:50 +02:00
Replace pages._meta
syntax by pages["_meta"]
to match Pico's docs
This commit is contained in:
13
index.twig
13
index.twig
@@ -7,7 +7,8 @@
|
|||||||
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
|
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
|
||||||
{% if meta.description %}
|
{% if meta.description %}
|
||||||
<meta name="description" content="{{ meta.description|striptags }}" />
|
<meta name="description" content="{{ meta.description|striptags }}" />
|
||||||
{% endif %}{% if meta.robots %}
|
{% endif %}
|
||||||
|
{% if meta.robots %}
|
||||||
<meta name="robots" content="{{ meta.robots }}" />
|
<meta name="robots" content="{{ meta.robots }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -27,17 +28,17 @@
|
|||||||
<span class="icon-menu" aria-hidden="true"></span>
|
<span class="icon-menu" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Toggle Menu</span>
|
<span class="sr-only">Toggle Menu</span>
|
||||||
</a>
|
</a>
|
||||||
{% if pages._meta.meta.logo %}
|
{% if pages["_meta"].meta.logo %}
|
||||||
<div id="logo" aria-hidden="true">
|
<div id="logo" aria-hidden="true">
|
||||||
<a href="{{ "index"|link }}">
|
<a href="{{ "index"|link }}">
|
||||||
<img src="{{ pages._meta.meta.logo|url }}" alt="" />
|
<img src="{{ pages["_meta"].meta.logo|url }}" alt="" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="title"{{ pages._meta.meta.tagline ? ' class="tagline"' }}>
|
<div id="title"{{ pages["_meta"].meta.tagline ? ' class="tagline"' }}>
|
||||||
<a href="{{ "index"|link }}">
|
<a href="{{ "index"|link }}">
|
||||||
<h1>{{ site_title }}</h1>
|
<h1>{{ site_title }}</h1>
|
||||||
{{ pages._meta.meta.tagline|markdown }}
|
{{ pages["_meta"].meta.tagline|markdown }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="nav" role="navigation" tabindex="-1">
|
<div id="nav" role="navigation" tabindex="-1">
|
||||||
@@ -61,7 +62,7 @@
|
|||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="social">
|
<div class="social">
|
||||||
{% for social in pages._meta.meta.social %}
|
{% for social in pages["_meta"].meta.social %}
|
||||||
<a href="{{ social.url }}" title="{{ social.title }}" role="button">
|
<a href="{{ social.url }}" title="{{ social.title }}" role="button">
|
||||||
<span class="icon-{{ social.icon }}" aria-hidden="true"></span>
|
<span class="icon-{{ social.icon }}" aria-hidden="true"></span>
|
||||||
<span class="sr-only">{{ social.title }}</span>
|
<span class="sr-only">{{ social.title }}</span>
|
||||||
|
Reference in New Issue
Block a user