The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ
Browse Source

Make it possible to hide pages from the top navigation

master
Gergely Polonkai 1 year ago
parent
commit
c53ba939c6
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
  1. 2
      my_theme/templates/base.html
  2. 2
      pelicanconf.py

2
my_theme/templates/base.html

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

2
pelicanconf.py

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

Loading…
Cancel
Save