Sidebar menu ordered

This commit is contained in:
Felipe M 2020-02-13 15:18:41 +01:00
parent 9eed6939b4
commit 7ca986272e
Signed by: fmartingr
GPG key ID: 716BC147715E716F

View file

@ -26,7 +26,7 @@
<hr />
<nav>
<a {% if this.path == '/' %}class="text-bold"{% endif %} href="{{ '/'|url }}">/home</a>
{% for section in site.get('/').children %}
{% for section in site.get('/').children.order_by("title") %}
<a {% if this.is_child_of(section) %}class="text-bold"{% endif %} href="{{ section|url }}">{{ section.path }}</a>
{% endfor %}
</nav>