Skip to content

Commit f7af04d

Browse files
committed
Add RSS feed
1 parent 58d844b commit f7af04d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

feed.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: null
3+
---
4+
5+
<?xml version="1.0" encoding="UTF-8" ?>
6+
<rss version="2.0">
7+
<channel>
8+
<title>{{ site.title }}</title>
9+
<link>{{ site.url }}</link>
10+
<description>{{ site.description }}</description>
11+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
12+
{% for post in site.posts %}
13+
<item>
14+
<title>{{ post.title }}</title>
15+
<link>
16+
{{ post.url | prepend: site.url }}
17+
</link>
18+
<description>
19+
{{ post.content | escape }}
20+
</description>
21+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
22+
<guid>
23+
{{ post.url | prepend: site.url }}
24+
</guid>
25+
</item>
26+
{% endfor %}
27+
</channel>
28+
</rss>

0 commit comments

Comments
 (0)