diff --git a/themes/mytheme/templates/partials/authorposts.html.twig b/themes/mytheme/templates/partials/authorposts.html.twig index 7a698807..566193f0 100644 --- a/themes/mytheme/templates/partials/authorposts.html.twig +++ b/themes/mytheme/templates/partials/authorposts.html.twig @@ -12,13 +12,15 @@ {% endif %} {% for cat in catlist %} -

{{ cat }}

{% set catpages = taxonomy.findTaxonomy({'author': author,'category':cat}).order('date', 'desc') %} - + {% if catpages|length > 0 %} +

{{ cat }}

+ + {% endif %} {% endfor %} {% set pages = taxonomy.findTaxonomy({'author': author}).order('date', 'desc') %}