saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 15848b6b5f2da216666ba15123bb320018f10428
parent 05ac00286c4a8bf27b155a2369bfcc93043ff2ea
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:
Atemplates/rss.xml/footer.xml | 2++
Atemplates/rss.xml/header.xml | 8++++++++
Atemplates/rss.xml/item.xml | 8++++++++
3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/templates/rss.xml/footer.xml b/templates/rss.xml/footer.xml @@ -0,0 +1,2 @@ +</channel> +</rss> 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> 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>