From 4787959683537af1445aadea258e572a9c195377 Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Tue, 20 Mar 2018 22:45:21 +0100 Subject: [PATCH] tags added --- themes/varia/templates/index.html | 32 ++++++++++++++++++------------- themes/varia/templates/tag.html | 2 ++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index 65b0e7a096..a2fdc4d123 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -18,16 +18,19 @@
{% for article in articles_page.object_list %} - {% if article.category %} + {% set thumb_size = '/thumb' %} + {% if article.category %} {% if article.event_start %} {% set event_status = '' %} - {% set thumb_size = '/thumb' %} {% if article.event_start < article.date.now() %} {% set event_status = ' past' %} {% endif %} {% if article.event_start >= article.date.now() %} {% set event_status = ' current' %} {% set thumb_size = '/thumb2x' %} + {% endif %} + {% if article.category == 'article' %} + {% set thumb_size = '/thumb2x' %} {% endif %} {% endif %} @@ -40,6 +43,8 @@ {{ article.event_start | strftime('%d %B %Y') }}
+ {% else %} +
{% endif %}