1
0
mirror of https://github.com/picocms/pico-theme.git synced 2025-08-06 16:56:50 +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) %}
<li{% if page.id == current_page.id %} class="active"{% endif %}> {% if page.title and not page.hidden %}
<a href="{{ page.url }}">{{ page.title }}</a> <li{% if page.id == current_page.id %} class="active"{% endif %}>
</li> <a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>