This commit is contained in:
Daniel Hladek 2020-10-03 11:42:32 +02:00
parent d47730580e
commit c45eea33b8

View File

@ -12,8 +12,10 @@
{% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %} {% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}
{% set tmplst = [] %} {% set tmplst = [] %}
<ul>
{% for page in pages %} {% for page in pages %}
{% set blisted = false %} {% set blisted = false %}
<li> {{ page}} </li>
{% for bcat in blist %} {% for bcat in blist %}
{% if bcat in page.taxonomy["category"] %} {% if bcat in page.taxonomy["category"] %}
{% set blisted = true %} {% set blisted = true %}
@ -23,6 +25,7 @@
{% set tmplst = tmplst|merge([page]) %} {% set tmplst = tmplst|merge([page]) %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul>
{% set pages = tmplst|slice(0,10) %} {% set pages = tmplst|slice(0,10) %}
<section class="topiclist"> <section class="topiclist">