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 --- _includes/jekyll-theme/posts/feed.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '_includes') diff --git a/_includes/jekyll-theme/posts/feed.html b/_includes/jekyll-theme/posts/feed.html index 4fe4a29..cc2f52b 100644 --- a/_includes/jekyll-theme/posts/feed.html +++ b/_includes/jekyll-theme/posts/feed.html @@ -7,9 +7,13 @@

{{ post.title }}

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

-- cgit v1.2.3