From aa256c58d1d2bac8ea6e67b8f079f1804edb5ca8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Apr 2022 21:32:47 +0200 Subject: posts: remove extra spaces in feed --- _layouts/post.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '_layouts/post.html') diff --git a/_layouts/post.html b/_layouts/post.html index 740da65..92fa965 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -5,9 +5,13 @@ layout: default

{{ page.title }}

- {% if page.category %} + {%- comment -%} + Collapse the Liquid whitespace here, so that no extra spaces + between s are introduced. + {%- endcomment -%} + {%- if page.category -%}  {{ page.category }} - {% endif %} + {%- endif -%}  {{ page.date | date: '%-d %b %Y' }}

-- cgit v1.2.3