aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2018-01-11 20:55:47 +0800
committerGitHub <[email protected]>2018-01-11 20:55:47 +0800
commit869c9a1699ed11cfe064013f7089a7dd7c499671 (patch)
tree7c8a37f83f755c7badd982d1bb2f950c40556393 /all.rss.xml
parent3237e400631bcc71fa970557edfde40a658819c5 (diff)
parent866436c73338c2d0caa0cb35dff4949048943fee (diff)
downloadblog.jinwei.me-869c9a1699ed11cfe064013f7089a7dd7c499671.tar.gz
Merge pull request #1 from clarkzjw/feed
Support generate rss.xml
Diffstat (limited to 'all.rss.xml')
-rw-r--r--all.rss.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/all.rss.xml b/all.rss.xml
new file mode 100644
index 0000000..cafc7fd
--- /dev/null
+++ b/all.rss.xml
@@ -0,0 +1,18 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>{{ site.name }}</title>
5 <link>{{ site.url }}</link>
6 <description>{{ site.tagline }}</description>
7 <atom:link href="{{ site.url }}/rss" rel="self" type="application/rss+xml" />
8 {% for post in posts[:20] %}
9 <item>
10 <title>{{ post.title | e }}</title>
11 <description>{{ post.body | e }}</description>
12 <pubDate>{{ post.date_rss }}</pubDate>
13 <link>{{ site.url }}/{{ post.permalink }}</link>
14 <guid isPermaLink="true">{{ site.url }}/{{ post.permalink }}</guid>
15 </item>
16 {% endfor %}
17 </channel>
18</rss>
Powered by cgit v1.2.3 (git 2.41.0)