]> git.r.bdr.sh - rbdr/blog/commitdiff
Add RSS template
authorBen Beltran <redacted>
Mon, 1 Jun 2020 21:35:20 +0000 (23:35 +0200)
committerBen Beltran <redacted>
Mon, 1 Jun 2020 21:35:20 +0000 (23:35 +0200)
templates/feed.xml [new file with mode: 0644]

diff --git a/templates/feed.xml b/templates/feed.xml
new file mode 100644 (file)
index 0000000..d22d656
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">
+  <channel>
+    <title>Blog at Unlimited Pizza 🍕</title>
+    <link>https://blog.unlimited.pizza</link>
+    <description>This is the blog at unlimited.pizza</description>
+    <language>en</language>
+    {{~ it.posts: post}}
+      <item>
+        <guid isPermaLink="false">unlimited-pizza:{{= post.id}}</guid>
+        <pubDate>{{= post.createdOn}}</pubDate>
+        <description>
+          {{= post.html}}
+        </description>
+      </item>
+    {{~}}
+  </channel>
+</rss>