From c05bd8303b53d26e5b283bc71b0153f221dca962 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 23 Jun 2023 14:04:35 +0200 Subject: Improve HTML indentation --- templates/index.html | 10 +++++----- themes/bear/templates/header.html | 2 +- themes/bear/templates/nav.html | 2 +- themes/bear/templates/page.html | 2 +- themes/bear/templates/section.html | 4 ++-- themes/bear/templates/taxonomy_single.html | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/templates/index.html b/templates/index.html index 7a7d753..ab91a21 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,10 +4,10 @@ {% block title_class %} p-name fn{% endblock %} -{% block main %} +{% block main -%}
- {{ section.content | safe }} + {{ section.content | safe -}}

Latest Posts

@@ -26,11 +26,11 @@ diff --git a/themes/bear/templates/header.html b/themes/bear/templates/header.html index 18b2318..9d2b31f 100644 --- a/themes/bear/templates/header.html +++ b/themes/bear/templates/header.html @@ -8,4 +8,4 @@ - +{{ "" -}} diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html index cf0d9b7..ba41879 100644 --- a/themes/bear/templates/nav.html +++ b/themes/bear/templates/nav.html @@ -1,4 +1,4 @@ -Home + Home {%- if config.extra.main_menu %} {%- for item in config.extra.main_menu %} {%- if item.url is matching("https?://") %} diff --git a/themes/bear/templates/page.html b/themes/bear/templates/page.html index 393139b..001fdee 100644 --- a/themes/bear/templates/page.html +++ b/themes/bear/templates/page.html @@ -14,7 +14,7 @@ {%- endif %} {%- endif %}
- {{ page.content | safe }} + {{ page.content | trim | indent | safe }}