diff --git a/templates/blog.html b/templates/blog.html
index 9e6889e20..81a6e6379 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -11,14 +11,16 @@
{{ page.title }}
—
{% for category in page.taxonomies.category %}
- {{ category }}
- {% if not loop.last %}, {% endif %}{% endfor %}
+ {{- category -}}
+
+ {%- if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
—
{% for author in page.taxonomies.author %}
- {{ author | default(value=["unknown author"]) }}
- {% if not loop.last %}, {% endif %}
+ {{- author | default(value=["unknown author"]) -}}
+
+ {%- if not loop.last %}, {% endif %}
{% endfor %}
{% if page.updated -%}
diff --git a/templates/post.html b/templates/post.html
index 8e18bd743..f095864fb 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -52,14 +52,18 @@ {{ page.title }}
{{ page.date | date(format="%d.%m.%Y %H:%M") }}
{% if page.taxonomies.category %}
—
- {% for category in
- page.taxonomies.category %}{{ category }}{% if not
- loop.last %}, {% endif %}{% endfor %}
+ {% for category in page.taxonomies.category %}
+
+ {{- category -}}
+
+ {%- if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
—
- {% for author in page.taxonomies.author %}{{ author | default
- (value=["unknown author"]) }}{% if not loop.last %}, {% endif %}
+ {% for author in page.taxonomies.author %}
+
+ {{- author | default (value=["unknown author"]) -}}
+
+ {%- if not loop.last %}, {% endif %}
{% endfor %}
{% if page.updated %}