1
0
mirror of https://github.com/picocms/pico-theme.git synced 2025-08-06 00:37:46 +02:00

Update to Twig 3.0

This commit is contained in:
Daniel Rudolf
2020-04-11 21:14:28 +02:00
parent 85fe74b8db
commit 9018a67f89

View File

@@ -43,10 +43,12 @@
</div>
<div id="nav" role="navigation" tabindex="-1">
<ul>
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
<li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% for page in pages(depthOffset=-1) %}
{% if page.title and not page.hidden %}
<li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>