- {{ t.startdate | strftime(date_format) }}{% if t.enddate is defined %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime is defined %} {{ t.starttime | strftime(time_format) }}{% endif %} {{ t.location }} |
+ {{ t.startdate | strftime(date_format) }}{% if t.enddate %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ t.starttime | strftime(time_format) }}{% endif %} {{ t.location }} |
{{ t.summary }} {% if "Moderation" in t.categories %}(Moderation){%endif%}
- {% if t.description is defined %}{{ t.description | replace("\n\n", " ") | replace("\n", " ") | replace("
", " ")}} {% endif %}
- {% if t.attach is defined %}Mehr Infos {% endif %}
+ {% if t.description %}{{ t.description | replace("\n\n", " ") | replace("\n", " ") | replace("
", " ")}} {% endif %}
+ {% if t.attach %}Mehr Infos {% endif %}
|
{% endfor %}
@@ -45,7 +45,7 @@
{% endblock content_body %}
{% block content_footer %}
- {% if page.written_at is defined %}
+ {% if page.written_at %}
diff --git a/theme/templates/wide-cards.html b/theme/templates/wide-cards.html
index 6474f9e..8a16cf0 100644
--- a/theme/templates/wide-cards.html
+++ b/theme/templates/wide-cards.html
@@ -14,7 +14,7 @@ original order #}
{% set wcards = [] %}
{% for wide_card in page.wide_cards %}
{% do wcards.append(pages | selectattr("slug", "==", wide_card) | list | first) if pages | selectattr("slug", "==",
-wide_card) | list | first is defined %}
+wide_card) | list | first %}
{% endfor %}
{# now we can finally iterate over the correct pages (max. 4 pages) #}
{% for wcard in wcards[:4] %}
@@ -23,13 +23,13 @@ wide_card) | list | first is defined %}