diff --git a/lib/jekyll-feed/feed.xml b/lib/jekyll-feed/feed.xml index 9068836f..79b7a566 100644 --- a/lib/jekyll-feed/feed.xml +++ b/lib/jekyll-feed/feed.xml @@ -52,6 +52,8 @@ {% endunless %} {% assign posts = posts | sort: "date" | reverse %} {% assign posts_limit = site.feed.posts_limit | default: 10 %} + {% assign cdata_end_token = "]]>" %} + {% assign cdata_end_token_escaped = "]]]]>" %} {% for post in posts limit: posts_limit %} {% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %} @@ -63,7 +65,7 @@ {{ post.id | absolute_url | xml_escape }} {% assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only %} {% unless excerpt_only %} - + {% endunless %} {% assign post_author = post.author | default: post.authors[0] | default: site.author %} @@ -96,7 +98,7 @@ {% assign post_summary = post.description | default: post.excerpt %} {% if post_summary and post_summary != empty %} - + {% endif %} {% assign post_image = post.image.path | default: post.image %} diff --git a/spec/fixtures/_posts/2014-03-04-march-the-fourth.md b/spec/fixtures/_posts/2014-03-04-march-the-fourth.md index b649b729..41d425f2 100644 --- a/spec/fixtures/_posts/2014-03-04-march-the-fourth.md +++ b/spec/fixtures/_posts/2014-03-04-march-the-fourth.md @@ -8,4 +8,4 @@ image: categories: updates jekyll --- -March the fourth! +March the fourth!