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 ++++++-- _layouts/post.html | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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' }}

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