From 9cca223d82160e005b4c6f634015e9dfbf16322c Mon Sep 17 00:00:00 2001 From: Daniel Hladek Date: Sat, 3 Oct 2020 17:10:51 +0200 Subject: [PATCH] zz --- .../templates/partials/authorposts.html.twig | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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') %}