From 1afd7e998eeb73c516d735df7fc65da40dc66d94 Mon Sep 17 00:00:00 2001 From: playest Date: Sun, 2 Aug 2020 19:03:41 +0200 Subject: [PATCH] The RSS feed breaks on special chars The RSS feeds breaks if a "&" is in the file name of the post. For example a file named "2020-08-01-Hello so&so.md" would have broken the feed without this commit. --- lib/jekyll-feed/feed.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-feed/feed.xml b/lib/jekyll-feed/feed.xml index afba157a..68de018d 100644 --- a/lib/jekyll-feed/feed.xml +++ b/lib/jekyll-feed/feed.xml @@ -57,7 +57,7 @@ {% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %} {{ post_title }} - + {{ post.date | date_to_xmlschema }} {{ post.last_modified_at | default: post.date | date_to_xmlschema }} {{ post.id | absolute_url | xml_escape }}