From 65800cdbeadc21ee4a469361d6b70c2189a0fe0f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 26 Apr 2023 13:14:30 +0200 Subject: Improve whitespacing in HTML --- templates/base.html | 2 +- templates/footer.html | 4 ++-- templates/header.html | 4 +++- templates/nav.html | 2 +- templates/page.html | 8 +++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/base.html b/templates/base.html index 973abdd..4ba8442 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,7 @@ {% include "favicon.html" ignore missing -%} {%- block title %}{{ config.title }}{%- endblock %} - {% include "seo_tags.html" ignore missing -%} + {% include "seo_tags.html" ignore missing %} {%- if config.generate_feed %} {% block rss -%} diff --git a/templates/footer.html b/templates/footer.html index 97b096b..c952a93 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,5 +1,5 @@ diff --git a/templates/header.html b/templates/header.html index db5b921..c1d3c3e 100644 --- a/templates/header.html +++ b/templates/header.html @@ -2,5 +2,7 @@

{{ config.title }}

- + diff --git a/templates/nav.html b/templates/nav.html index 4dd0e63..e006ab1 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -7,4 +7,4 @@ {{ item.name }} {%- endif %} {%- endfor %} -{%- endif %} +{%- endif -%} diff --git a/templates/page.html b/templates/page.html index baf6c09..48b920e 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,8 +1,6 @@ {% extends "base.html" %} -{% block title %} -{{ page.title }} | {{ super() }} -{% endblock %} +{% block title %}{{ page.title }} | {{ super() }}{% endblock %} {% block main %} {%- if not page.extra.menu %} @@ -11,14 +9,14 @@

{%- endif %} {%- endif %}
- {{ page.content | safe }} + {{ page.content | indent | safe }}

{%- if page.taxonomies %} -- cgit 1.4.1 From ccdba539bd37dbe83a7a8f773a6568b6ca93cd5f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 26 Apr 2023 13:16:25 +0200 Subject: Remove duplicate header in demo content --- content/bear.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/bear.md b/content/bear.md index 62f5db5..dd7da4b 100644 --- a/content/bear.md +++ b/content/bear.md @@ -2,8 +2,6 @@ title = "Bear" +++ -# Bear - Website: [https://bearblog.dev](https://bearblog.dev) There is a website obesity crisis. Bloated websites are full of scripts, ads, and trackers slowing your readers down every time they try to read your well-crafted content. -- cgit 1.4.1