diff --git a/themes/varia/templates/base.html b/themes/varia/templates/base.html index 712ffdd..47f528e 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 9839ddf..523fb2b 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 %}