Browse Source

zz

pull/4/head
Daniel Hladek 4 years ago
parent
commit
9cca223d82
  1. 14
      themes/mytheme/templates/partials/authorposts.html.twig

14
themes/mytheme/templates/partials/authorposts.html.twig

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

Loading…
Cancel
Save