Fix tipue search

The tipue plugin registers itself as pelican.plugins.tipue_search (namespace
plugin) in the latest version see here:
7fe8f3f05c

Keep old style tipue_search to be compatible with old versions.

To use the search one would need to add "search" to DIRECT_TEMPLATES in
pelicanconf.py so that search.html is copied to the output folder:

    DIRECT_TEMPLATES = ["index", "tags", "categories", "archives", "search"]
This commit is contained in:
Georg Lutz 2021-12-28 22:11:17 +01:00
parent 7e99f9bbe6
commit 1e31ab9b50
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{% if PLUGINS and 'tipue_search' in PLUGINS %}
{% if PLUGINS and ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %}
{% extends 'base.html' %}
{% block title %}{{ _('Search') }} - {{ SITENAME|striptags }}{% endblock title %}
{% block content %}