From 20d1158e4020db29469dde5facc6b2ad2dd68526 Mon Sep 17 00:00:00 2001 From: lowrussia Date: Thu, 20 Feb 2020 13:07:52 +0100 Subject: [PATCH] mobile style --- themes/varia/templates/base.html | 7 ++++--- themes/varia/templates/index.html | 7 +++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/varia/templates/base.html b/themes/varia/templates/base.html index 712ffdd11..47f528e09 100644 --- a/themes/varia/templates/base.html +++ b/themes/varia/templates/base.html @@ -5,13 +5,14 @@ {% block title %}{{ SITENAME }} {{SITESUBTITLE}}{% endblock title %} - + {% from 'syndication.html' import syndication with context %} {{ syndication(article) }} {% endblock head %} + @@ -52,7 +53,7 @@
- +
{% block banner %} diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index 9839ddf73..523fb2bb2 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -30,11 +30,10 @@ {% if article.event_start %} {% set event_status = '' %} - {% set now = article.date.now() | string %} - {% if article.event_start < now %} + {% if article.event_start < article.date.now() %} {% set event_status = ' past' %} {% endif %} - {% if article.event_start >= now %} + {% if article.event_start >= article.date.now() %} {% set event_status = ' current' %} {% set thumb_size = '/thumb2x' %} {% endif %} @@ -52,7 +51,7 @@ {{ article.title }} {% if article.event_start %}
- + {{ article.event_start | strftime('%d %B %Y') }}
{% else %}