Added baseurl in feed.xml
This commit is contained in:
parent
c5a14987be
commit
7c26f555f6
1 changed files with 10 additions and 10 deletions
20
feed.xml
20
feed.xml
|
|
@ -4,23 +4,23 @@
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ site.title | xml_escape }}</title>
|
<title>{{ site.title | xml_escape }}</title>
|
||||||
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
||||||
<link>{{ site.url }}</link>
|
<link>{{site.url}}{{site.baseurl}}</link>
|
||||||
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
<atom:link href="{{site.url}}{{site.baseurl}}/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>
|
||||||
{% if post.author.name %}
|
{% if post.author.name %}
|
||||||
<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>
|
<dc:creator>{{post.author.name | xml_escape}}</dc:creator>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if post.excerpt %}
|
{% if post.excerpt %}
|
||||||
<description>{{ post.excerpt | xml_escape }}</description>
|
<description>{{post.excerpt | xml_escape}}</description>
|
||||||
{% else %}
|
{% else %}
|
||||||
<description>{{ post.content | xml_escape }}</description>
|
<description>{{post.content | xml_escape}}</description>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<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.url }}{{ post.url }}</link>
|
<link>{{site.url}}{{site.baseurl}}{{post.url}}</link>
|
||||||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
<guid isPermaLink="true">{{site.url}}{{site.baseurl}}{{post.url}}</guid>
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue