flex/templates
Trolli Schmittlauch 6d821518f1 Fix: correct custom CSS URL for I18N pages
problem description:
When using the i18n_subsites plugin – which is somehow supported by this
theme – the SITEURL is modified for all but the default language,
causing the construction {{ SITEURL }}/{{ CUSTOM_CSS }} to change as
well.
This in principle affects all such template constructions where SITEURL
is prepended to a custom loading path.
One exception is {{ THEME_STATIC_DIR }}, which is adjusted by the
i18n_subsites code to still match for translations.

solution:
The i18n plugin introduces an additional context variable
{{ main_siteurl }}, which always points at the original unmodified
SITEURL. As unfortunately this variable is not present in non-i18n
sites, it's existence is checked first, taking SITEURL as a fallback.
This special handling is acceptable IMHO, as at first glance I could not
find any other affected URLs in templates.

follow-up to #192
2022-03-01 03:41:15 +01:00
..
partial Add support for SEO Pelican plugin 2021-04-21 22:58:07 +02:00
archives.html Fix identation and missing trans 2020-04-20 23:36:36 +02:00
article.html Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07:00
author.html Reworked to newstyle gettext and named vars 2016-08-10 19:28:32 +02:00
authors.html Add id attribute to archives and authors pages 2019-10-19 20:22:39 +00:00
base.html Fix: correct custom CSS URL for I18N pages 2022-03-01 03:41:15 +01:00
categories.html Fix identation and missing trans 2020-04-20 23:36:36 +02:00
category.html Improvments. 2016-08-10 23:20:35 -03:00
index.html Index summary improvement 2021-07-26 21:58:29 +02:00
page.html Set alternate link tags for translated content 2019-10-27 15:21:23 +00:00
period_archives.html Fix identation and missing trans 2020-04-20 23:36:36 +02:00
search.html move search files to search page 2021-03-12 09:29:01 +01:00
tag.html Improvments. 2016-08-10 23:20:35 -03:00
tags.html Add id attribute to categories and tags pages 2019-10-19 17:18:14 +00:00