parent
470a734034
commit
138a88e05f
@ -32,13 +32,10 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<div id="nav" role="region" tabindex="-1">
|
<div id="nav" role="region" tabindex="-1">
|
||||||
<ul>
|
<ul>
|
||||||
{% for page in pages if page.title and not page.hidden %}
|
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
|
||||||
{% set pageDepth = page.id|split('/')|length %}
|
|
||||||
{% if (pageDepth == 2) and (page.id ends with "/index") or (pageDepth == 1) %}
|
|
||||||
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user