summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-16 15:15:30 +0200
committerWolfgang Müller2021-06-16 15:23:16 +0200
commit635e7a68353be4ad9c2ac1ceac5fb7fc122d32fb (patch)
tree6ee2643eb9fb09821afca1a16ff7bb515ffd9f1a /templates
parent8d62f42cda3fb202d5bb873f87d2f8a645a7003f (diff)
downloadzunzuncito-635e7a68353be4ad9c2ac1ceac5fb7fc122d32fb.tar.gz
templates: Fix up some issues with whitespace control
This makes the HTML source slightly nicer.
Diffstat (limited to 'templates')
-rw-r--r--templates/macros.html8
1 files changed, 4 insertions, 4 deletions
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 %}
<article class="mention">
-{% else -%}
+{%- else -%}
<article>
-{% endif -%}
+{%- endif %}
<header>
<img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" />
<div class="banner smaller">
@@ -22,7 +22,7 @@
</header>
<section class="post">{{ post.content | safe }}</section>
</article>
-{% endmacro render_post -%}
+{%- endmacro render_post -%}
{%- macro render_pagination(paginator) %}
{%- if paginator.number_pagers > 1 %}