From 647d01483655fc063e174e471f6cd381d7982eea Mon Sep 17 00:00:00 2001 From: juego Date: Wed, 14 May 2014 18:02:49 +0200 Subject: [PATCH] Verify that the site.url has a protocol. --- feed.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/feed.xml b/feed.xml index b880dc2..136e729 100644 --- a/feed.xml +++ b/feed.xml @@ -5,33 +5,34 @@ layout: none {{ site.title }} Jekyll - - +{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %}{% assign url = site.url | prepend: 'http:' %}{% else %}{% assign url = site.url %}{% endif %} + + {{ site.time | date_to_xmlschema }} -{{ site.url }}/ +{{ url }}/ {{ site.owner.name }} - {{ site.url }}/ + {{ url }}/ {{ site.owner.email }} {% for post in site.posts limit:20 %} <![CDATA[{{ post.title | cdata_escape }}]]> - - {{ site.url }}{{ post.id }} + + {{ url }}{{ post.id }} {% if post.modified %}{{ post.modified | to_xmlschema }}T00:00:00-00:00 {{ post.date | date_to_xmlschema }} {% else %}{{ post.date | date_to_xmlschema }} {{ post.date | date_to_xmlschema }}{% endif %} {{ site.owner.name }} - {{ site.url }} + {{ url }} {{ site.owner.email }} - {% for tag in post.tags %}{% endfor %} + {% for tag in post.tags %}{% endfor %} {{ post.content | xml_escape }} - <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> + <p><a href="{{ url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> {% endfor %}