From 8c7f517314ea89fae3a0d0984439e7be95563d82 Mon Sep 17 00:00:00 2001 From: eclipse Date: Wed, 12 Mar 2025 11:01:52 +0100 Subject: [PATCH] small improvements for templates --- theme/templates/includes/macros.html | 8 ++++---- theme/templates/includes/timestamp.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/theme/templates/includes/macros.html b/theme/templates/includes/macros.html index cd09261..459087c 100644 --- a/theme/templates/includes/macros.html +++ b/theme/templates/includes/macros.html @@ -2,8 +2,8 @@ {% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %} {% endmacro %} @@ -12,8 +12,8 @@ {% macro ci(pic, link='', alt='', title='', credit='', credit_link='') %}
- {% if link %}{% endif %}{% if link %}{% endif %} - {% if credit %}
Bild: {% if credit_link %}{% endif %}{{ credit }}{% if credit_link %}{% endif %}
{% endif %} + {% if link %}{% endif %}{% if link %}{% endif %} + {% if credit %}
Bild: {% if credit_link %}{% endif %}{{ credit }}{% if credit_link %}{% endif %}
{% endif %}
{% endmacro %} diff --git a/theme/templates/includes/timestamp.html b/theme/templates/includes/timestamp.html index 6cc740e..1e52f86 100644 --- a/theme/templates/includes/timestamp.html +++ b/theme/templates/includes/timestamp.html @@ -1,2 +1,2 @@ {% set t = [ pages | map(attribute="modified") | list | max , articles | map(attribute="modified") | list | max ] | max %} -

Letzte Aktualisierung dieser Webseite: {{ t.strftime("%d.%m.%Y") }}

+

Letzte Aktualisierung dieser Webseite: {{ t.strftime("%d.%m.%Y um %H:%M") }}