website/_includes/menu.html
Valentin 91dca1ed01 Merge branch 'coc-and-menuorder' into 'master'
Code of Conduct and Menuorder-feature

See merge request zombi/website!11
2018-06-23 17:44:01 +02:00

13 lines
432 B
HTML

{% assign sorted_nodes = site.pages | sort:"menutitle" | sort:"menuorder" %}
{%- for node in sorted_nodes -%}
{%- if node.lang == page.lang and node.menutitle -%}
<li>
<a href="{{ node.url }}" {%- if node.url == page.url %} class="is-active"{% endif -%}>
{{ node.menutitle | escape }}
</a>
</li>
{%- endif -%}
{%- endfor -%}
{% for link in site.external %}
<li><a href="{{ link.url }}">{{ link.name }}</a></li>
{% endfor %}