This commit is contained in:
Daniel Hladek 2020-10-03 17:10:51 +02:00
parent bed8aa6278
commit 9cca223d82

View File

@ -12,13 +12,15 @@
{% endif %} {% endif %}
{% for cat in catlist %} {% for cat in catlist %}
<h2> {{ cat }}</h2>
{% set catpages = taxonomy.findTaxonomy({'author': author,'category':cat}).order('date', 'desc') %} {% set catpages = taxonomy.findTaxonomy({'author': author,'category':cat}).order('date', 'desc') %}
<ul> {% if catpages|length > 0 %}
{% for p in catpages %} <h2> <a href="/categories/{{cat}}">{{ cat }} </a></h2>
<li><a href="{{p.url}}">{{ p.title|e }}</a></li> <ul>
{% endfor %} {% for p in catpages %}
</ul> <li><a href="{{p.url}}">{{ p.title|e }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endfor %} {% endfor %}
{% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %} {% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}