diff --git a/feed.xml b/feed.xml index dda7909..dd11239 100644 --- a/feed.xml +++ b/feed.xml @@ -3,12 +3,12 @@ layout: none --- +{% assign add_protocol = false %} {% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %} {% assign site_url = site.url | prepend: 'http:' %} - {% assign post_content = post.content | xml_escape | replace: site.url, url %} + {% assign add_protocol = true %} {% else %} {% assign site_url = site.url %} - {% assign post_content = post.content | xml_escape %} {% endif %} {{ site.title }} Jekyll @@ -37,7 +37,12 @@ layout: none {{ site.owner.email }} {% for tag in post.tags %}{% endfor %} - {{ post_content }} + + {% if add_protocol %} + {{ post.content | xml_escape | replace: site.url, site_url }} + {% else %} + {{ post.content | xml_escape }} + {% endif %} <p><a href="{{ site_url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site_url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> {% endfor %}