From 3aa22cb3ad8d584e0c8f9d44b4ed65a615ef02f0 Mon Sep 17 00:00:00 2001 From: welpo Date: Tue, 21 Feb 2023 19:39:54 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20split=20macros?= =?UTF-8?q?.html=20in=20different=20files=20Clearer=20macros=20format.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/403.html | 2 +- templates/404.html | 2 +- templates/archive.html | 2 +- templates/base.html | 9 +- templates/cards.html | 4 +- templates/macros/cards_posts.html | 41 +++++ templates/macros/content.html | 79 ++++++++++ templates/macros/format_date.html | 22 +++ templates/macros/list_posts.html | 38 +++++ templates/macros/list_title.html | 16 ++ templates/macros/macros.html | 242 ------------------------------ templates/macros/page_desc.html | 13 ++ templates/macros/page_header.html | 5 + templates/page.html | 2 +- templates/partials/header.html | 2 - templates/section.html | 6 +- templates/tags/list.html | 2 +- templates/tags/single.html | 2 +- 18 files changed, 233 insertions(+), 256 deletions(-) create mode 100644 templates/macros/cards_posts.html create mode 100644 templates/macros/content.html create mode 100644 templates/macros/format_date.html create mode 100644 templates/macros/list_posts.html create mode 100644 templates/macros/list_title.html delete mode 100644 templates/macros/macros.html create mode 100644 templates/macros/page_desc.html create mode 100644 templates/macros/page_header.html diff --git a/templates/403.html b/templates/403.html index b4bfa56..168a80c 100644 --- a/templates/403.html +++ b/templates/403.html @@ -2,7 +2,7 @@ {% block main_content %}
- {{ post_macros::page_header(title="403")}} + {{ macros_page_header::page_header(title="403")}} forbidden
{% endblock main_content %} diff --git a/templates/404.html b/templates/404.html index 0782011..facb826 100644 --- a/templates/404.html +++ b/templates/404.html @@ -2,7 +2,7 @@ {% block main_content %}
- {{ post_macros::page_header(title="404")}} + {{ macros_page_header::page_header(title="404")}} not found
{% endblock main_content %} diff --git a/templates/archive.html b/templates/archive.html index ecb6727..9f3913b 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block main_content %} -{{ post_macros::page_header(title=section.title) }} +{{ macros_page_header::page_header(title=section.title) }}