Fixed URL links in RSS feed

This commit is contained in:
Barry Clark 2014-06-01 14:54:52 -04:00
parent 59d4012584
commit 790d93f3ed

View file

@ -6,15 +6,15 @@ layout: none
<channel> <channel>
<title>{{ site.name | xml_escape }}</title> <title>{{ site.name | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description> <description>{{ site.description | xml_escape }}</description>
<link>{{ site.footer-links.rss }}</link> <link>{{ site.url }}</link>
<atom:link href="{{ site.footer-links.rss }}/feed.xml" rel="self" type="application/rss+xml" /> <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %} {% for post in site.posts limit:10 %}
<item> <item>
<title>{{ post.title | xml_escape }}</title> <title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description> <description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.footer-links.rss }}/{{ post.url }}</link> <link>{{ site.url }}/{{ post.url }}</link>
<guid isPermaLink="true">{{ site.footer-links.rss }}/{{ post.url }}</guid> <guid isPermaLink="true">{{ site.url }}/{{ post.url }}</guid>
</item> </item>
{% endfor %} {% endfor %}
</channel> </channel>