From 635e7a68353be4ad9c2ac1ceac5fb7fc122d32fb Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 16 Jun 2021 15:15:30 +0200 Subject: templates: Fix up some issues with whitespace control This makes the HTML source slightly nicer. --- templates/macros.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/macros.html') diff --git a/templates/macros.html b/templates/macros.html index ef3cf34..991a6b4 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,9 +1,9 @@ {% macro render_post(post, mention=false, in_feed=true) -%} -{% if mention -%} +{%- if mention %}
-{% else -%} +{%- else -%}
-{% endif -%} +{%- endif %}
{{ config.extra.author }}
{{ post.content | safe }}
-{% endmacro render_post -%} +{%- endmacro render_post -%} {%- macro render_pagination(paginator) %} {%- if paginator.number_pagers > 1 %} -- cgit v1.2.3-2-gb3c3