Make it possible to hide pages from the top navigation

This commit is contained in:
Gergely Polonkai 2021-02-15 15:47:56 +01:00
parent 0fc738b033
commit c53ba939c6
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
2 changed files with 4 additions and 0 deletions

View File

@ -25,7 +25,9 @@
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU -%}
{% for pg in pages %}
{% if pg.relative_source_path not in HIDDEN_PAGES %}
<li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU -%}

View File

@ -45,6 +45,8 @@ LINKS = (
('Jinja2', 'http://jinja.pocoo.org/'),
)
HIDDEN_PAGES = ()
# Social widget
SOCIAL = (
('Matrix', 'https://matrix.to/#/@gergely:polonkai.eu'),