add RSS feed template again - saait - the most boring static page generator
HTML git clone git://git.codemadness.org/saait
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 15848b6b5f2da216666ba15123bb320018f10428
DIR parent 05ac00286c4a8bf27b155a2369bfcc93043ff2ea
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 3 Nov 2020 22:26:09 +0100
add RSS feed template again
This allows users to choose between Atom or RSS.
RSS is an older technology that is more widely supported than Atom, for example
in snownews.
Diffstat:
A templates/rss.xml/footer.xml | 2 ++
A templates/rss.xml/header.xml | 8 ++++++++
A templates/rss.xml/item.xml | 8 ++++++++
3 files changed, 18 insertions(+), 0 deletions(-)
---
DIR diff --git a/templates/rss.xml/footer.xml b/templates/rss.xml/footer.xml
@@ -0,0 +1,2 @@
+</channel>
+</rss>
DIR diff --git a/templates/rss.xml/header.xml b/templates/rss.xml/header.xml
@@ -0,0 +1,8 @@
+<?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/">
+<channel>
+ <title>${sitetitle}</title>
+ <description>${description}</description>
+ <link>${siteurl}</link>
DIR diff --git a/templates/rss.xml/item.xml b/templates/rss.xml/item.xml
@@ -0,0 +1,8 @@
+<item>
+ <title>${title}</title>
+ <link>${siteurl}/${filename}</link>
+ <guid>${siteurl}/${filename}</guid>
+ <dc:date>${created}T00:00:00Z</dc:date>
+ <author>${author}</author>
+ <description>${description}</description>
+</item>