From 24a18d763560acb82c6be3d2689416976a9387e8 Mon Sep 17 00:00:00 2001 From: Lordiii Date: Wed, 27 Mar 2024 19:33:39 +0100 Subject: [PATCH] Auto-Format Templates --- templates/404.html | 8 +- templates/album/album-list.html | 153 ++++++------ templates/album/album-single.html | 88 +++---- templates/base.html | 60 ++--- templates/blog.html | 36 +-- templates/impressum.html | 132 +++++------ templates/index.html | 113 +++++---- templates/macros.html | 277 +++++++++++----------- templates/navbar-pagelist.html | 26 +- templates/navbar.html | 22 +- templates/page.html | 135 ++++++----- templates/section.html | 8 +- templates/shortcodes/contact_info.html | 6 +- templates/shortcodes/contact_info_en.html | 6 +- templates/shortcodes/ref_links.html | 12 +- templates/structured-data.html | 12 +- templates/taxonomy_list.html | 22 +- templates/taxonomy_single.html | 10 +- 18 files changed, 573 insertions(+), 553 deletions(-) diff --git a/templates/404.html b/templates/404.html index 9379175..138da5c 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,8 +1,8 @@ {% extends "base.html" %} {% block content %} -

404 - {{trans(key="not_found", lang="de")}}

-

{{trans(key="not_found_content", lang="de")}}

-

404 - {{trans(key="not_found", lang="en")}}

-

{{trans(key="not_found_content", lang="en")}}

+

404 - {{ trans(key="not_found", lang="de") }}

+

{{ trans(key="not_found_content", lang="de") }}

+

404 - {{ trans(key="not_found", lang="en") }}

+

{{ trans(key="not_found_content", lang="en") }}

{% endblock content %} \ No newline at end of file diff --git a/templates/album/album-list.html b/templates/album/album-list.html index 9252d5f..443c5a1 100644 --- a/templates/album/album-list.html +++ b/templates/album/album-list.html @@ -2,89 +2,90 @@ {% import "macros.html" as macros %} {% block main %} -

- {{ section.title }} -

+

+ {{ section.title }} +

- {% endblock content %} \ No newline at end of file diff --git a/templates/album/album-single.html b/templates/album/album-single.html index 20ad95e..151464e 100644 --- a/templates/album/album-single.html +++ b/templates/album/album-single.html @@ -3,53 +3,57 @@ {% block extra_meta %} - -{{ macros::ifs_metadata(image_filename=page.extra.file_uri, width=page.extra.width, title=page.title, height=page.extra.height) }} + + {{ self::ifs_metadata(image_filename=page.extra.file_uri, width=page.extra.width, title=page.title, height=page.extra.height) }} {% endblock extra_meta %} {% block content %} -

- {{ page.title }} - +

{{ page.title }} - - - -

- -
- - {% if page.lower %} - - - - - - {% endif %} - - - - - - {% if page.higher %} - - - - - - {% endif %} - -
- -{{ page.content | safe }} + + {{ page.title }} + + + +

+ +
+ + {% if page.lower %} + + + + + + {% endif %} + + + + + + {% if page.higher %} + + + + + + {% endif %} + +
+ + {{ page.content | safe }} {% endblock content %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index fb954e6..f7be421 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,11 +1,11 @@ {% if lang == config.default_language %} -{% set lang_stub = "" %} + {% set lang_stub = "" %} {% else %} -{% set lang_stub = "." ~ lang %} + {% set lang_stub = "." ~ lang %} {% endif %} - + @@ -13,37 +13,37 @@ - + {% if current_path %} - + {% endif %} {% if page.authors %} - {% set page_author = page.authors | join(sep=", ") %} + {% set page_author = page.authors | join(sep=", ") %} {% else %} - {% set page_author = config.author %} + {% set page_author = config.author %} {% endif %} {% block extra_meta %} - + {% endblock extra_meta %} {% if section.title %} - {% set title = section.extra.og_title | default(value=section.title ~ " | " ~ config.title) %} - {% set description = section.extra.og_description | default(value=config.description) %} + {% set title = section.extra.og_title | default(value=section.title ~ " | " ~ config.title) %} + {% set description = section.extra.og_description | default(value=config.description) %} {% elif page.title %} - {% set title = page.extra.og_title | default(value=page.title ~ " | " ~ config.title) %} - {% set description = page.extra.og_description | default(value=config.description) %} + {% set title = page.extra.og_title | default(value=page.title ~ " | " ~ config.title) %} + {% set description = page.extra.og_description | default(value=config.description) %} {% else %} - {% set title = config.title %} - {% set description = config.description %} + {% set title = config.title %} + {% set description = config.description %} {% endif %} @@ -73,22 +73,22 @@ {% include "navbar.html" %} {% block main %} -
-
- {% block content %} - {% if page.content %} - {{ page.content | safe }} - {% elif section.content %} - {{ section.content | safe }} - {% endif %} - {% endblock content %} -
-
- {% block sidebar %} - {% include "sidebar.html" %} - {% endblock sidebar %} -
-
+
+
+ {% block content %} + {% if page.content %} + {{ page.content | safe }} + {% elif section.content %} + {{ section.content | safe }} + {% endif %} + {% endblock content %} +
+
+ {% block sidebar %} + {% include "sidebar.html" %} + {% endblock sidebar %} +
+
{% endblock main %}