aboutsummaryrefslogtreecommitdiff
path: root/_includes/feed.xml
diff options
context:
space:
mode:
Diffstat (limited to '_includes/feed.xml')
-rw-r--r--_includes/feed.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/_includes/feed.xml b/_includes/feed.xml
new file mode 100644
index 0000000..310c90b
--- /dev/null
+++ b/_includes/feed.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:media="http://search.yahoo.com/mrss/"
+ xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ site.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ site.baseurl }}</link>
+ <description>{{ site.description | xml_escape }}</description>
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
+
+ {% for post in site.posts limit:10 %}
+ <item>
+ <title>{{ post.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ post.url }}</link>
+ <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
+ <description><![CDATA[{{ post.content | xml_escape }}]]></description>
+ </item>
+ {% endfor %}
+ </channel>
+</rss> \ No newline at end of file