From e5b8cc9535521e0297337345aa2c708b95eb637d Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sun, 6 Mar 2022 19:42:03 +0100 Subject: [PATCH] list all-lang articles in DE page, but only EN in EN page --- pelicanconf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pelicanconf.py b/pelicanconf.py index ef2c331..c5cd6d7 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -94,6 +94,8 @@ I18N_SUBSITES = { (_LOC := 'en'): { 'OG_LOCALE': "en", 'LOCALE': ("en_GB", "en_GB.utf8"), + # override default and hide untranslated articles + 'I18N_UNTRANSLATED_ARTICLES': 'hide', # translation of strings, menu, titles 'SITENAME': "Schmittlauch's Blog & Homepage", @@ -115,6 +117,8 @@ I18N_SUBSITES = { ), } } +# idea: almost everyone understanding also understands English, +# so keep English-only posts in the German page I18N_UNTRANSLATED_ARTICLES = 'keep' # Theming, templates, and specific configs