From 2138316523a62ba9d22a9e266d6e228055c7bd3d Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 8 Nov 2023 10:08:51 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20buildu,=20kdy=C5=BE=20recept=20nem?= =?UTF-8?q?=C3=A1=20tagy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/macros.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/macros.html b/templates/macros.html index 0a5e943..707d7c9 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -54,9 +54,11 @@ {% macro tags_in_category() %} {% set_global tags = [] %} {% for page in term.pages %} - {% for tag in page.taxonomies.tagy %} - {% set_global tags = tags | concat(with=tag) %} - {% endfor %} + {% if page.taxonomies.tagy %} + {% for tag in page.taxonomies.tagy %} + {% set_global tags = tags | concat(with=tag) %} + {% endfor %} + {% endif %} {% endfor %} {% set_global tags = tags | sort | unique %}