From 4db6110e4b87a9a111323beca3cc88702ca238f8 Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 14 Mar 2025 20:57:40 +0100 Subject: [PATCH] some bugfixes --- theme/templates/tag.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/theme/templates/tag.html b/theme/templates/tag.html index 553c740..858063e 100644 --- a/theme/templates/tag.html +++ b/theme/templates/tag.html @@ -9,15 +9,16 @@ {% block content_body %} {% from 'includes/macros.html' import ci %} {% for article in articles %} +{% set link = article.featured_image[0].link | default("/" + article.save_as) %}
-

{{ article.title }}

+

{{ article.title }}

{{ article.summary }}
{% if article.featured_image %} {% set i = article.featured_image[0] %} - {{ ci('../' + i.pic, i.link | default("/" + article.save_as), i.alt | default("Titelbild von " + article.title), i.title | default(article.title), i.credit, i.credit_link) }} + {{ ci('../' + i.pic, link, i.alt | default("Titelbild von " + article.title), i.title | default(article.title), i.credit, i.credit_link) }} {% endif %}