From 1b2844e92673c5efad1d01df5be30a22f3ef55fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Kirchg=C3=A4ssner?= Date: Fri, 2 Sep 2022 09:43:56 +0200 Subject: [PATCH] check for seo, neighbors as namespace plugins These two plugins moved recently to new versions. They have a module name preceeded by 'pelican.plugins.' --- templates/partial/jsonld_article.html | 2 +- templates/partial/neighbors.html | 2 +- templates/partial/og.html | 2 +- templates/partial/og_article.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/partial/jsonld_article.html b/templates/partial/jsonld_article.html index abcc32b..c4ba80e 100644 --- a/templates/partial/jsonld_article.html +++ b/templates/partial/jsonld_article.html @@ -1,4 +1,4 @@ -{% if not PLUGINS or 'seo' not in PLUGINS %} +{% if not PLUGINS or 'seo' not in PLUGINS or 'pelican.plugins.seo' not in PLUGINS%} {% if SITELOGO %} {% set default_cover = SITELOGO %} {% else %} diff --git a/templates/partial/neighbors.html b/templates/partial/neighbors.html index a03a9e1..65bfada 100644 --- a/templates/partial/neighbors.html +++ b/templates/partial/neighbors.html @@ -1,4 +1,4 @@ -{% if PLUGINS and 'neighbors' in PLUGINS %} +{% if PLUGINS and ('neighbors' in PLUGINS or 'pelican.plugins.neighbors' in PLUGINS) %}
{% if article.prev_article %} diff --git a/templates/partial/og.html b/templates/partial/og.html index 7195851..3fc5d67 100644 --- a/templates/partial/og.html +++ b/templates/partial/og.html @@ -1,4 +1,4 @@ -{% if not PLUGINS or 'seo' not in PLUGINS %} +{% if not PLUGINS or 'seo' not in PLUGINS or 'pelican.plugins.seo' not in PLUGINS %} {% if OG_LOCALE %} {% set default_locale = OG_LOCALE %} {% else %} diff --git a/templates/partial/og_article.html b/templates/partial/og_article.html index 9a929bf..2039946 100644 --- a/templates/partial/og_article.html +++ b/templates/partial/og_article.html @@ -1,4 +1,4 @@ -{% if not PLUGINS or 'seo' not in PLUGINS %} +{% if not PLUGINS or 'seo' not in PLUGINS or 'pelican.plugins.seo' not in PLUGINS %} {% if OG_LOCALE %} {% set default_locale = OG_LOCALE %} {% else %}