From 5ba02490039df055b2940f9781012ebfec6bd225 Mon Sep 17 00:00:00 2001 From: rra Date: Tue, 6 Mar 2018 18:25:37 +0100 Subject: [PATCH] using thumbnails for everything except gifs --- themes/varia/templates/article.html | 13 +++- themes/varia/templates/index.html | 97 ++++++++++++++++------------- 2 files changed, 62 insertions(+), 48 deletions(-) diff --git a/themes/varia/templates/article.html b/themes/varia/templates/article.html index 3eaf40e6e..f8a61fc2e 100644 --- a/themes/varia/templates/article.html +++ b/themes/varia/templates/article.html @@ -30,9 +30,16 @@
{% if article.event_start %} diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index e49565c03..65b0e7a09 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -5,75 +5,82 @@ {% for p in pages %} {% if p.title == 'header' %}
- {{ p.content }} -
+ {{ p.content }} +
{% endif %} {% endfor %} {% block content_title %} {% endblock %} {% if articles_page.has_other_pages() %} - {% include 'pagination.html' %} + {% include 'pagination.html' %} {% endif %}
{% for article in articles_page.object_list %} - {% if article.category %} + {% 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 %} {% endif %} -
- {% endif %} - + +
{{ article.summary }} + + {% if DEFAULT_LANG == 'en' %} + read more + {% elif DEFAULT_LANG == 'nl' %} + lees meer + {% endif %} + +
+

+ +
{% endfor %}