-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathrss.xml
More file actions
30 lines (29 loc) · 1.08 KB
/
rss.xml
File metadata and controls
30 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
layout : nil
---
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>{{site.name |append:' ' xml_escape}}</title>
<image>
<link>http://jser.me</link>
<url>http://jser.me/images/logo.png</url>
</image>
<link>http://jser.me</link>
<description/>
<language>zh-cn</language>
<generator>http://jser.me</generator>
<ttl>5</ttl>
<copyright><![CDATA[Copyright © jser.me]]></copyright>
{% for post in site.posts limit: 20 %}
<item>
<title>{{ post.title | append:' ' xml_escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid>{{ site.url }}{{ post.id }}</guid>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<author><![CDATA[草依山]]></author>
<description><![CDATA[{{ post.content }}<br/>文章来源: <a href="{{site.url}}{{ post.url }}">{{post.title}}</a> <br/> 文章的标签: {% for tag in post.tags %} <a href="{{site.url}}/tag.html#{{tag}}" class="tag">{{tag}}</a> {% endfor %} ]]></description>
</item>
{% endfor %}
</channel>
</rss>