aboutsummaryrefslogtreecommitdiff
path: root/_includes/feed.xml
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-05-30 09:02:38 -0400
committerBradley Taunt <bt@btxx.org>2024-05-30 09:02:38 -0400
commit8f28fc58d5fe68775fbe552eb172cbb4ad8614b1 (patch)
tree65c5ef1ba611db1aa9fe80d65d2fffca950238e9 /_includes/feed.xml
parentfa6aded86998639a53aecfa7b76e0ecd800fd9f0 (diff)
Further customization and porting of older content
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