sorting the overview on the slug

This commit is contained in:
manetta 2020-09-18 17:34:01 +02:00
parent df0aaa8f9c
commit f429ede303

View File

@ -7,7 +7,7 @@
{% block content_title %} {% block content_title %}
{% endblock %} {% endblock %}
{% for category, articles in categories | sort %} {% for category, articles in categories | sort(attribute="slug") %}
<a class="nounderline" href="{{ SITEURL }}/{{ category.url }}" title="Permalink to {{ category|striptags }}"> <a class="nounderline" href="{{ SITEURL }}/{{ category.url }}" title="Permalink to {{ category|striptags }}">
<h1 class="category">{{ category }}</h1> <h1 class="category">{{ category }}</h1>
</a> </a>