Make it possible to hide pages from the top navigation

Cette révision appartient à :
Gergely Polonkai 2021-02-15 15:47:56 +01:00
Parent 0fc738b033
révision c53ba939c6
Signature inconnue de Gitea
ID de la clé GPG: 2D2885533B869ED4
2 fichiers modifiés avec 4 ajouts et 0 suppressions

Voir le fichier

@ -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 -%}

Voir le fichier

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