From 4948bea3c27a6697c00b05bd311fcdc0837c9dee Mon Sep 17 00:00:00 2001 From: rra Date: Mon, 26 Feb 2018 23:26:08 +0100 Subject: [PATCH] workaround for syndication of translated files --- pelicanconf.py | 5 ++--- themes/varia/templates/syndication.html | 13 ++++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index ac4dde2..9d76ac4 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -42,17 +42,16 @@ EXTRA_PATH_METADATA = { THEME = 'themes/varia' THEME_STATIC_DIR = 'theme/' -STATIC_PATHS = "images/" I18N_SUBSITES = { 'en': { 'SITESUBTITLE':u'Centre for Everyday Technology', - 'SITEURL':'varia.zone/en/', + 'SITEURL':'varia.zone/en/', 'locale':'en_US.UTF-8' }, 'nl': { 'SITESUBTITLE':u'Centrum voor Alledaagse Technologie', - 'SITEURL':'varia.zone/', + 'SITEURL':'varia.zone/', 'locale':'nl.UTF-8' } } diff --git a/themes/varia/templates/syndication.html b/themes/varia/templates/syndication.html index c412348..c1cff3f 100644 --- a/themes/varia/templates/syndication.html +++ b/themes/varia/templates/syndication.html @@ -28,9 +28,16 @@ serves as the default image for posts whose featured_image is not set. #} {% if article.featured_image %} - - - + {% if I18N_SUBSITES %} + {% for lang, url in I18N_SUBSITES.items() %} + {% if lang == 'en' %} + + + + + {% endif %} + {% endfor %} +{% endif %} {% else %} {% if FEATURED_IMAGE %}