Make it possible to hide pages from the top navigation
This commit is contained in:
parent
0fc738b033
commit
c53ba939c6
@ -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 -%}
|
||||
|
@ -45,6 +45,8 @@ LINKS = (
|
||||
('Jinja2', 'http://jinja.pocoo.org/'),
|
||||
)
|
||||
|
||||
HIDDEN_PAGES = ()
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (
|
||||
('Matrix', 'https://matrix.to/#/@gergely:polonkai.eu'),
|
||||
|
Loading…
Reference in New Issue
Block a user