Merge pull request #311 from lioman/master

check for new neighbor and seo namespace plugins
This commit is contained in:
Alexandre Vicenzi 2022-12-01 11:59:26 +01:00 committed by GitHub
commit faec6935e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 8 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 %}
{% set default_cover = SITELOGO %}
{% 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">
{% if article.prev_article %}
<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 %}
{% set default_locale = OG_LOCALE %}
{% 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 %}
{% set default_locale = OG_LOCALE %}
{% else %}

View file

@ -2,14 +2,14 @@
{% extends 'base.html' %}
{% block title %}{{ _('Search') }} - {{ SITENAME|striptags }}{% endblock title %}
{% block content %}
<article class="single">
<header>
<h1 id="categories">{{ _('Search Results') }}</h1>
</header>
<div id="tipue_search_content"></div>
</article>
{% endblock content %}
{% block additional_js %}
{% endblock content %} {% block additional_js %}
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/jquery.min.js"></script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.js"></script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch_set.min.js"></script>
@ -23,5 +23,4 @@
});
});
</script>
{% endblock additional_js %}
{% endif %}
{% endblock %} {% endif %}