From 67250dca95369b7cd1afbdaf694b022b008e5009 Mon Sep 17 00:00:00 2001 From: sptaule Date: Thu, 27 Jan 2022 15:03:27 +0100 Subject: Added gobal Search, template partials, deleted shortcodes not in use --- templates/base.html | 204 ++++++------------------------- templates/partials/shared/footer.html | 11 ++ templates/partials/shared/head.html | 50 ++++++++ templates/partials/shared/nav.html | 31 +++++ templates/partials/shared/paginator.html | 40 ++++++ templates/shortcodes/chart.html | 1 - templates/shortcodes/galleria.html | 1 - templates/shortcodes/mapbox.html | 11 -- 8 files changed, 166 insertions(+), 183 deletions(-) create mode 100644 templates/partials/shared/footer.html create mode 100644 templates/partials/shared/head.html create mode 100644 templates/partials/shared/nav.html create mode 100644 templates/partials/shared/paginator.html delete mode 100755 templates/shortcodes/chart.html delete mode 100755 templates/shortcodes/galleria.html delete mode 100755 templates/shortcodes/mapbox.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 1e44aa7..8170b44 100755 --- a/templates/base.html +++ b/templates/base.html @@ -1,206 +1,70 @@ {% import 'macros.html' as macros %} - + - - - - {% if config.extra.favicon.webmanifest %} - - {% endif %} - {% if config.extra.favicon.safari_pinned_tab %} - - {% endif %} - {% if config.extra.favicon.favicon_16x16 %} - - {% endif %} - {% if config.extra.favicon.favicon_32x32 %} - - {% endif %} - {% if config.extra.favicon.apple_touch_icon %} - - {% endif %} - - {% if config.extra.galleria.enabled %} - - {% endif %} - - {% if config.extra.mapbox.enabled %} - - {% endif %} - - - - - - {% block user_custom_stylesheet %} - {% endblock %} - - - {% block title %} - {{ config.title }} - {% endblock title %} - - - {% if config.extra.katex.enabled %} - - - - - {% if config.extra.katex.auto_render %} - - {% endif %} - {% endif %} + {% include "partials/shared/head.html" %} - + + {% include "partials/shared/nav.html" %}
{% block content %}{% endblock %}
- - {% block pagination %} - {% if paginator.previous or paginator.next %} -
-
- + {% block search %} + - {% endif %} {% endblock %} - {% block comment %} + {% block pagination %} + {% include "partials/shared/paginator.html" %} {% endblock %} -
-
-

- {{ macros:: social_links( social_config=config.extra.social) }} -

-

- Powered by Zola -

-
-
+ {% block comment %}{% endblock %} + + {% include "partials/shared/footer.html" %} - {% if config.extra.galleria.enabled %} - - - - {% endif %} {% if config.extra.mermaid.enabled %} {% endif %} - {% if config.extra.chart.enabled %} - - {% endif %} + - + {%- if lang != "en" -%} - {%- block other_lang_search_js -%} - {%- endblock -%} + {%- block other_lang_search_js -%}{%- endblock -%} {%- endif -%} - {% block custom_js %} - {% endblock %} + {% block custom_js %}{% endblock %} - {% block user_custom_js %} - {% endblock %} + {% block user_custom_js %}{% endblock %} \ No newline at end of file diff --git a/templates/partials/shared/footer.html b/templates/partials/shared/footer.html new file mode 100644 index 0000000..de58caf --- /dev/null +++ b/templates/partials/shared/footer.html @@ -0,0 +1,11 @@ +
+
+

+ {{ macros:: social_links( social_config=config.extra.social) }} +

+

+ Powered by Zola +

+
+
\ No newline at end of file diff --git a/templates/partials/shared/head.html b/templates/partials/shared/head.html new file mode 100644 index 0000000..185a97b --- /dev/null +++ b/templates/partials/shared/head.html @@ -0,0 +1,50 @@ +{% if config.extra.favicon.webmanifest %} + +{% endif %} +{% if config.extra.favicon.safari_pinned_tab %} + +{% endif %} +{% if config.extra.favicon.favicon_16x16 %} + +{% endif %} +{% if config.extra.favicon.favicon_32x32 %} + +{% endif %} +{% if config.extra.favicon.apple_touch_icon %} + +{% endif %} + +{% if config.extra.galleria.enabled %} + +{% endif %} + + + + + +{% block user_custom_stylesheet %}{% endblock %} + + + {% block title %} + {{ config.title }} + {% endblock title %} + + +{% if config.extra.katex.enabled %} + + + + + {% if config.extra.katex.auto_render %} + + {% endif %} +{% endif %} \ No newline at end of file diff --git a/templates/partials/shared/nav.html b/templates/partials/shared/nav.html new file mode 100644 index 0000000..2489bf6 --- /dev/null +++ b/templates/partials/shared/nav.html @@ -0,0 +1,31 @@ + \ No newline at end of file diff --git a/templates/partials/shared/paginator.html b/templates/partials/shared/paginator.html new file mode 100644 index 0000000..470d411 --- /dev/null +++ b/templates/partials/shared/paginator.html @@ -0,0 +1,40 @@ +{% if paginator.previous or paginator.next %} +
+
+ +
+
+{% endif %} \ No newline at end of file diff --git a/templates/shortcodes/chart.html b/templates/shortcodes/chart.html deleted file mode 100755 index 539aeea..0000000 --- a/templates/shortcodes/chart.html +++ /dev/null @@ -1 +0,0 @@ -{{body | safe}} diff --git a/templates/shortcodes/galleria.html b/templates/shortcodes/galleria.html deleted file mode 100755 index 0e23cd3..0000000 --- a/templates/shortcodes/galleria.html +++ /dev/null @@ -1 +0,0 @@ -
{{body | safe}}
\ No newline at end of file diff --git a/templates/shortcodes/mapbox.html b/templates/shortcodes/mapbox.html deleted file mode 100755 index 13d3488..0000000 --- a/templates/shortcodes/mapbox.html +++ /dev/null @@ -1,11 +0,0 @@ -
-
- {{config.extra.mapbox.access_token}} -
-
- {{zoom}} -
-
- {{body}} -
-
-- cgit v1.2.3