flex/templates/partial
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
..
cc_license.html Place copyright year ahead of copyright name 2020-08-26 09:38:58 -06:00
copyright.html Place copyright year ahead of copyright name 2020-08-26 09:38:58 -06:00
disqus.html Fixes. 2017-04-22 03:41:39 -03:00
flex.html Rename files 2020-04-20 23:19:01 +02:00
ga.html Refactor. 2015-11-24 23:55:55 -02:00
github.html Fixes. 2017-04-22 03:41:39 -03:00
gtm.html Fix JS .src target 2018-01-06 16:09:16 +13:00
gtm_noscript.html Fix iFrame target 2018-01-06 16:11:27 +13:00
guages.html Refactor. 2015-11-24 23:55:55 -02:00
isso.html Added isso.min.js as default ISSO_EMBED_JS_PATH 2020-04-15 09:15:46 -06:00
jsonld.html
jsonld_article.html Strip tags from title in JSON-LD 2016-02-02 08:56:47 +01:00
matomo.html Replace Piwik code with Matomo (#183) 2019-06-24 21:51:12 +02:00
neighbors.html Fix compatibility with Pelican 4.5.0 when PLUGINS is not set in pelicanconf.py 2020-09-10 08:42:20 -07:00
og.html
og_article.html Fixes. 2017-04-22 03:41:39 -03:00
pagination.html Make the pagination buttons draw with the same height (#92) 2017-03-02 17:01:46 -03:00
statuscake.html change statuscake img src 2019-03-27 09:52:12 +08:00
translations.html Styles. 2017-04-22 20:16:33 -03:00