From ae977db8574af94346f3457e2f6add60d2f6a353 Mon Sep 17 00:00:00 2001 From: daudix Date: Sun, 11 Feb 2024 11:15:15 +0300 Subject: [PATCH] Add type for favicons, chnage includes to partials --- templates/base.html | 6 +++--- templates/blog.html | 2 +- templates/{includes => partials}/comments.html | 0 templates/{includes => partials}/footer.html | 0 templates/{includes => partials}/head.html | 16 ++++++++-------- templates/{includes => partials}/nav.html | 0 6 files changed, 12 insertions(+), 12 deletions(-) rename templates/{includes => partials}/comments.html (100%) rename templates/{includes => partials}/footer.html (100%) rename templates/{includes => partials}/head.html (58%) rename templates/{includes => partials}/nav.html (100%) diff --git a/templates/base.html b/templates/base.html index 7925440..ecc88da 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,12 +1,12 @@ -{% include "includes/head.html" ignore missing -%} +{% include "partials/head.html" ignore missing -%} - {% include "includes/nav.html" ignore missing -%} + {% include "partials/nav.html" ignore missing -%}
{% block custom %}{%- endblock -%} {% block content %}{%- endblock -%}
- {% include "includes/footer.html" ignore missing -%} + {% include "partials/footer.html" ignore missing -%} diff --git a/templates/blog.html b/templates/blog.html index 9513841..e2b1920 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -73,7 +73,7 @@ {{ page.content | safe }} {% if page.extra.comments.id %} - {% include "includes/comments.html" %} + {% include "partials/comments.html" %} {% endif %} {% if page.lower or page.higher %} diff --git a/templates/includes/comments.html b/templates/partials/comments.html similarity index 100% rename from templates/includes/comments.html rename to templates/partials/comments.html diff --git a/templates/includes/footer.html b/templates/partials/footer.html similarity index 100% rename from templates/includes/footer.html rename to templates/partials/footer.html diff --git a/templates/includes/head.html b/templates/partials/head.html similarity index 58% rename from templates/includes/head.html rename to templates/partials/head.html index 44b4f9a..01dc2ad 100644 --- a/templates/includes/head.html +++ b/templates/partials/head.html @@ -33,20 +33,20 @@ {% if page.extra.emoji_favicon %} - - + + {% elif section.extra.emoji_favicon %} - - + + {% elif config.extra.emoji_favicon %} - - + + {% elif config.extra.animated_favicon %} - + {% else %} - + {% endif %} diff --git a/templates/includes/nav.html b/templates/partials/nav.html similarity index 100% rename from templates/includes/nav.html rename to templates/partials/nav.html