From 0323bbd5b929b55c4031974b43559ce773440723 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 1 Feb 2022 18:35:47 +0100 Subject: Custom template for applications page --- theme/custom/applications.html | 22 +++++++++++++++++ theme/custom/base.html | 54 ++++++++++++++++++------------------------ theme/custom/custom.css | 9 ++----- 3 files changed, 47 insertions(+), 38 deletions(-) create mode 100644 theme/custom/applications.html (limited to 'theme/custom') diff --git a/theme/custom/applications.html b/theme/custom/applications.html new file mode 100644 index 0000000..eb0124b --- /dev/null +++ b/theme/custom/applications.html @@ -0,0 +1,22 @@ +{% extends "page.html" %} + +{% block after_content %} +{% for page in hidden_pages|selectattr("date")|sort(reverse=true,attribute="date") %} +{% for tag in page.tags if "application" == tag.name %} +

{{ page.title }}

+
+ {% if summarise or page.metadata['summary'] or SUMMARY_MAX_LENGTH %} + {% if page.featured_image %} + + {% endif %} + {{ page.summary }} + {% endif %} +
+{% endfor %} + {% if not loop.last %} +
+ {% endif %} +{% endfor %} +{{ super() }} + +{% endblock %} diff --git a/theme/custom/base.html b/theme/custom/base.html index 829cc1f..debd12b 100755 --- a/theme/custom/base.html +++ b/theme/custom/base.html @@ -3,7 +3,6 @@ {{ msg % kwargs }} {%- endmacro -%} {% endif %} - @@ -47,7 +46,7 @@ {% else %} - + {% endif %} {# DARK THEME STYLES #} @@ -92,11 +91,6 @@ {% endif %} {% if PLUGINS and 'tipue_search' in PLUGINS %} - - - - - {% endif %} @@ -141,19 +135,22 @@ {% endif %} - {% if REL_CANONICAL %} - {% if page %} - - {% elif article %} - - {% elif page_name == 'index' and not articles_previous_page %} - - {% elif author or category or tag or page_name == 'index' %} - - {% else %} - + {% if not PLUGINS or 'seo' not in PLUGINS %} + {% if REL_CANONICAL %} + {% if page %} + + {% elif article %} + + {% elif page_name == 'index' and not articles_previous_page %} + + {% elif author or category or tag or page_name == 'index' %} + + {% else %} + + {% endif %} {% endif %} - {% endif %} + {% endif %} + {% block meta %} @@ -174,6 +171,9 @@ {% if GOOGLE_TAG_MANAGER %} {% include "partial/gtm.html" %} {% endif %} + {% if MICROSOFT_CLARITY %} + {% include "partial/clarity.html" %} + {% endif %} {% if GOOGLE_TAG_MANAGER %} @@ -181,7 +181,7 @@ {% endif %}