Prepend url, too, in feed.xml.

This commit is contained in:
Parker Moore 2014-05-07 00:09:12 -04:00
parent ac666490d2
commit c71a4717dd
1 changed files with 4 additions and 4 deletions

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.baseurl }}</link> <link>{{ site.url }}{{ site.baseurl }}</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl }}" rel="self" type="application/rss+xml" /> <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" 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>{{ post.url | prepend: site.baseurl }}</link> <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl }}</guid> <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
</item> </item>
{% endfor %} {% endfor %}
</channel> </channel>