Browse code

Make use of featured winzer-card in news_latest template

Benjamin Roth authored on06/02/2026 16:00:22
Showing1 changed files
... ...
@@ -9,6 +9,7 @@
9 9
         title="{{ newsHeadline }}"
10 10
         text="{{ teaser|striptags }}"
11 11
         {% if hasAttachment %}hasAttachment{% endif %}
12
+        {% if featured %}featured{% endif %}
12 13
     >
13 14
     </winzer-card>
14 15
 {% endblock %}
Browse code

Update

Benjamin Roth authored on05/02/2026 22:10:34
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+{% block content %}
2
+    {% set category = archive.title %}
3
+    {% set date = date|date("d.m.y") %}
4
+    {% set hasAttachment = enclosure is not empty %}
5
+
6
+    <winzer-card
7
+        category="{{ category }}"
8
+        date="{{ date }}"
9
+        title="{{ newsHeadline }}"
10
+        text="{{ teaser|striptags }}"
11
+        {% if hasAttachment %}hasAttachment{% endif %}
12
+    >
13
+    </winzer-card>
14
+{% endblock %}