Prepend url, too, in feed.xml.
This commit is contained in:
parent
ac666490d2
commit
c71a4717dd
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue