Make it possible to hide pages from the menu

This commit is contained in:
Mikkel Munch Mortensen 2019-02-11 15:33:46 +01:00
parent 92e869be03
commit 8aa78bfcda
Signed by: decibyte
GPG key ID: 261C257C74AA764B

View file

@ -24,9 +24,11 @@
<nav> <nav>
{% for page in site.pages %} {% for page in site.pages %}
{% if page.title %} {% unless page.in_menu == false %}
<a href="{{ page.url | relative-url }}">{{ page.title }}</a> {% if page.title %}
{% endif %} <a href="{{ page.url | relative-url }}">{{ page.title }}</a>
{% endif %}
{% endunless %}
{% endfor %} {% endfor %}
</nav> </nav>
</header> </header>