Skip to content

Commit bf23b4f

Browse files
committed
Adding an rss feed. Closes #12
1 parent 9a204ff commit bf23b4f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

feed.rss

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: rss-feed
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<rss version="2.0">
6+
<channel>
7+
<title>{{ site.name }}</title>
8+
<description>{{ site.description }}</description>
9+
<link>{{ site.url }}</link>
10+
{% for post in site.posts limit:20 %}
11+
<item>
12+
<title>{{ post.title }}</title>
13+
<description>{{ post.content | xml_escape }}</description>
14+
<published>{{ post.date }}</published>
15+
<link>{{ site.url }}{{ post.url }}</link>
16+
</item>
17+
{% endfor %}
18+
</channel>
19+
</rss>

0 commit comments

Comments
 (0)