From efb6b4e9ef518946d3dcee639792658f98dd8c39 Mon Sep 17 00:00:00 2001 From: manetta Date: Tue, 22 Oct 2019 22:13:04 +0200 Subject: [PATCH] fix of broken links on English posts --- themes/varia/templates/index.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index 7743922..bfe6f6d 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -79,7 +79,11 @@ {% if article.category %} - {{ article.category }} + {% if DEFAULT_LANG == 'en' %} + {{ article.category }} + {% elif DEFAULT_LANG == 'nl' %} + {{ article.category }} + {% endif %} {% endif %} @@ -87,9 +91,17 @@ {{ glob.related_to }} {% for tag in article.tags %} - - - {% endfor %} + {% if DEFAULT_LANG == 'en' %} + + + + {% elif DEFAULT_LANG == 'nl' %} + + + + {% endif %} + + {% endfor %} {% endif %}