forked from data.coop/website
Make it possible to hide pages from the menu
This commit is contained in:
parent
92e869be03
commit
8aa78bfcda
|
@ -24,9 +24,11 @@
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
|
{% unless page.in_menu == false %}
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
<a href="{{ page.url | relative-url }}">{{ page.title }}</a>
|
<a href="{{ page.url | relative-url }}">{{ page.title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue