check for seo, neighbors as namespace plugins

These two plugins moved recently to new versions.
They have a module name preceeded by 'pelican.plugins.'
This commit is contained in:
Elias Kirchgässner 2022-09-02 09:43:56 +02:00
parent 56e011d70a
commit 1b2844e926
4 changed files with 4 additions and 4 deletions

View file

@ -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 %} {% if SITELOGO %}
{% set default_cover = SITELOGO %} {% set default_cover = SITELOGO %}
{% else %} {% else %}

View file

@ -1,4 +1,4 @@
{% if PLUGINS and 'neighbors' in PLUGINS %} {% if PLUGINS and ('neighbors' in PLUGINS or 'pelican.plugins.neighbors' in PLUGINS) %}
<div class="neighbors"> <div class="neighbors">
{% if article.prev_article %} {% if article.prev_article %}
<a class="btn float-left" href="{{ SITEURL }}/{{ article.prev_article.url }}" title="{{ article.prev_article.title|striptags }}"> <a class="btn float-left" href="{{ SITEURL }}/{{ article.prev_article.url }}" title="{{ article.prev_article.title|striptags }}">

View file

@ -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 %} {% if OG_LOCALE %}
{% set default_locale = OG_LOCALE %} {% set default_locale = OG_LOCALE %}
{% else %} {% else %}

View file

@ -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 %} {% if OG_LOCALE %}
{% set default_locale = OG_LOCALE %} {% set default_locale = OG_LOCALE %}
{% else %} {% else %}