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 %}