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:
10
index.twig
10
index.twig
@@ -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>
|
||||
|
Reference in New Issue
Block a user