1
0
mirror of https://github.com/picocms/pico-theme.git synced 2025-08-07 09:17:05 +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>
<div id="nav" role="navigation" tabindex="-1"> <div id="nav" role="navigation" tabindex="-1">
<ul> <ul>
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %} {% for page in pages(depthOffset=-1) %}
{% if page.title and not page.hidden %}
<li{% if page.id == current_page.id %} class="active"{% endif %}> <li{% if page.id == current_page.id %} class="active"{% endif %}>
<a href="{{ page.url }}">{{ page.title }}</a> <a href="{{ page.url }}">{{ page.title }}</a>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>