Improve whitespacing in HTML
Alan Pearce alan@alanpearce.eu
Wed, 26 Apr 2023 13:14:30 +0200
5 files changed, 10 insertions(+), 10 deletions(-)
M templates/base.html → templates/base.html
@@ -5,7 +5,7 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% include "favicon.html" ignore missing -%} <title>{%- block title %}{{ config.title }}{%- endblock %}</title> - {% include "seo_tags.html" ignore missing -%} + {% include "seo_tags.html" ignore missing %} <meta name="referrer" content="no-referrer-when-downgrade"> {%- if config.generate_feed %} {% block rss -%}
M templates/header.html → templates/header.html
@@ -2,5 +2,7 @@ <header> <a href="{{ config.base_url }}" class="title"> <h2>{{ config.title }}</h2> </a> - <nav>{% include "nav.html" %}</nav> + <nav> + {% include "nav.html" %} + </nav> </header>
M templates/page.html → 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 @@ {%- if page.date %} <p> <i> <time datetime='{{ page.date | date(format='%+') }}' pubdate> - {{ page.date | date(format=config.extra.date_format) }} + {{- page.date | date(format=config.extra.date_format) -}} </time> </i> </p> {%- endif %} {%- endif %} <main> - {{ page.content | safe }} + {{ page.content | indent | safe }} </main> <p> {%- if page.taxonomies %}