From 2444cd241003d0d1556a5977b806c4a780547050 Mon Sep 17 00:00:00 2001 From: manetta Date: Tue, 22 Oct 2019 22:20:01 +0200 Subject: [PATCH] fixed the image width of article posts in the index --- themes/varia/templates/index.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index bfe6f6d9a..374fd4031 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -26,7 +26,8 @@
{% for article in articles_page.object_list %} {% set thumb_size = '/thumb' %} - {% if article.category %} + {% if article.category %} + {% if article.event_start %} {% set event_status = '' %} {% if article.event_start < article.date.now() %} @@ -35,14 +36,17 @@ {% 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 %} {% endif %} - + + {% if article.category == 'article' %} + {% set thumb_size = '/thumb2x' %} + {% endif %} +