diff --git a/theme/templates/cards.html b/theme/templates/cards.html index 4ea2b86..23e4bc6 100644 --- a/theme/templates/cards.html +++ b/theme/templates/cards.html @@ -11,12 +11,11 @@
{{ article.summary }}
- {% endif %} #} + {% from 'includes/featured_image.html' import fi %} + {% if article.featured_image %} + {% set i = article.featured_image[0] %} + {{ fi(i.pic, i.link | default("/" + article.save_as), i.alt | default("Titelbild von " + article.title), i.title | default(article.title), i.credit) }} + {% endif %}