From e24f30c712a15c30b24b7cbf5eebd848e5fd1202 Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Tue, 6 Feb 2018 13:27:45 +0100 Subject: [PATCH] Fix #208 --- lib/jekyll-feed/feed.xml | 4 ++-- spec/fixtures/_posts/2014-03-02-march-the-second.md | 2 +- spec/jekyll-feed_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jekyll-feed/feed.xml b/lib/jekyll-feed/feed.xml index 6f4770ec..ac0945da 100644 --- a/lib/jekyll-feed/feed.xml +++ b/lib/jekyll-feed/feed.xml @@ -72,9 +72,9 @@ {% assign post_image = post.image.path | default: post.image %} {% if post_image %} {% unless post_image contains "://" %} - {% assign post_image = post_image | absolute_url | xml_escape %} + {% assign post_image = post_image | absolute_url %} {% endunless %} - + {% endif %} {% endfor %} diff --git a/spec/fixtures/_posts/2014-03-02-march-the-second.md b/spec/fixtures/_posts/2014-03-02-march-the-second.md index 76a8fc91..e828b051 100644 --- a/spec/fixtures/_posts/2014-03-02-march-the-second.md +++ b/spec/fixtures/_posts/2014-03-02-march-the-second.md @@ -1,5 +1,5 @@ --- -image: "https://cdn.example.org/absolute.png" +image: https://cdn.example.org/absolute.png?h=188&w=250 --- March the second! diff --git a/spec/jekyll-feed_spec.rb b/spec/jekyll-feed_spec.rb index c98088e4..4ef21719 100644 --- a/spec/jekyll-feed_spec.rb +++ b/spec/jekyll-feed_spec.rb @@ -93,7 +93,7 @@ it "includes the item image" do expect(contents).to include('') - expect(contents).to include('') + expect(contents).to include('') expect(contents).to include('') end