flex/templates
saagit c205163fd7 Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py
Pelican 4.5.0 changed the plugins mechanism and the default for
PLUGINS is now None.  The following type of construct is used in a
number of places in Flex:

    {% if 'tipue_search' in PLUGINS %}

If PLUGINS is not set in pelicanconf.py, the following exception will
be triggered under Pelican 4.5.0:

    TypeError: argument of type 'NoneType' is not iterable

The Pelican maintainers did not intend the examination of PLUGINS by
templates to be a stable API (per a discussion on IRC).  Per their
request, an enhancement request for a mechanism to do this has been
submitted here: https://github.com/getpelican/pelican/issues/2797

This commit changes the problematic constructs in Flex to be in the
style of:

    {% if PLUGINS and 'tipue_search' in PLUGINS %}

This allows Flex to work with Pelican 4.5.0 even if users do not
define PLUGINS.  Note that to use the new namespace plugins in Pelican
4.5.0, PLUGINS will have to be left at its default of None.

Resolves #245
2020-09-10 08:42:20 -07:00
..
partial Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07: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 compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07: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 Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07: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 Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07: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