mirror of
https://github.com/picocms/pico-theme.git
synced 2025-01-16 20:08:13 +01:00
Fallback to page.id if no page.title
- Fix for #4. - Hiding pages without titles wasn't really an intended behavior.
This commit is contained in:
parent
780b9484f1
commit
7eabd4cfb9
@ -43,9 +43,9 @@
|
||||
</div>
|
||||
<div id="nav" role="navigation" tabindex="-1">
|
||||
<ul>
|
||||
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
|
||||
{% for page in pages(depthOffset=-1) if not page.hidden %}
|
||||
<li{% if page.id == current_page.id %} class="active"{% endif %}>
|
||||
<a href="{{ page.url }}">{{ page.title }}</a>
|
||||
<a href="{{ page.url }}">{{ page.title ?: page.id }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user