Default theme: Navigation: Hide pages starting with a underscore (_)
This commit is contained in:
parent
b712650678
commit
b493ebdb84
1 changed files with 1 additions and 1 deletions
|
@ -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 %}>
|
||||
|
|
Loading…
Reference in a new issue