Hide pages that don't have a menutitle.
This commit is contained in:
parent
6bf5aa707f
commit
6dbcd70c3d
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
||||||
{% for node in site.pages %}
|
{% for node in site.pages %}
|
||||||
|
{% if node.menutitle %}
|
||||||
{% if node.url == page.url %}
|
{% if node.url == page.url %}
|
||||||
<li><a href="{{ node.url }}" class="is-active">{{ node.menutitle }}</a></li>
|
<li><a href="{{ node.url }}" class="is-active">{{ node.menutitle | escape }}</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="{{ node.url }}">{{ node.menutitle }}</a></li>
|
<li><a href="{{ node.url }}">{{ node.menutitle | escape }}</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li><a href="https://git.zom.bi/explore/projects">Git</a></li>
|
<li><a href="https://git.zom.bi/explore/projects">Git</a></li>
|
||||||
|
|
Loading…
Reference in a new issue