From 0308fe10567223f25cd5864506d122e1de5a4fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Kirchg=C3=A4ssner?= Date: Thu, 10 Mar 2022 10:40:22 +0100 Subject: [PATCH] extract stork search in include --- README.md | 2 +- templates/base.html | 16 +--------------- templates/partial/stork_search.html | 12 ++++++++++++ 3 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 templates/partial/stork_search.html diff --git a/README.md b/README.md index 725b920..e899b08 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme. - [Representative image](https://github.com/getpelican/pelican-plugins/tree/master/representative_image) - [Neighbors](https://github.com/getpelican/pelican-plugins/tree/master/neighbors) - [Pelican Search](https://github.com/pelican-plugins/search) -- [Tipue Search](https://github.com/getpelican/pelican-plugins/blob/master/tipue_search/) +- [Tipue Search](https://github.com/getpelican/pelican-plugins/blob/master/tipue_search/) (deprecated) - [SEO](https://github.com/pelican-plugins/seo) ## Install diff --git a/templates/base.html b/templates/base.html index 005e690..6b715e9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -78,10 +78,7 @@ {% endif %} {% if PLUGINS and 'pelican.plugins.search' in PLUGINS %} - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or not THEME_COLOR or THEME_COLOR == "light" %} - {% endif %} - {% endif %} @@ -316,17 +313,6 @@ {% block additional_js %}{% endblock %} - {% if PLUGINS and 'pelican.plugins.search' in PLUGINS %} - {% if STORK_VERSION %} - - - - {% endif %} + {% include 'partial/stork_search.html' %} diff --git a/templates/partial/stork_search.html b/templates/partial/stork_search.html new file mode 100644 index 0000000..c514940 --- /dev/null +++ b/templates/partial/stork_search.html @@ -0,0 +1,12 @@ +{% if PLUGINS and 'pelican.plugins.search' in PLUGINS %} +{% if STORK_VERSION %} + + + +{% endif %}