Default theme: Navigation: Hide pages starting with a underscore (_)

This commit is contained in:
Daniel Rudolf 2016-12-06 19:37:23 +01:00
parent b712650678
commit b493ebdb84
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -28,7 +28,7 @@
</h1>
<div id="nav" role="region" tabindex="-1">
<ul>
{% for page in pages if page.title %}
{% for page in pages if page.title and not (page.id starts with "_") %}
{% 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 %}>