From c583a69362f86fcc8e1b35a45a06dd8377d6308f Mon Sep 17 00:00:00 2001 From: mjfernez Date: Thu, 14 Oct 2021 20:14:53 -0400 Subject: Adds RSS auto-generation for files in 'site' This commit adds rss_generator.py which contains the main logic for indexing the site directory and generating a feed on startup. It serves as a sort of ad-hoc database which is accessed when /feed.xml is requested. Also corrects various typos, README nonsense, and expands the config options for RSS. Instances of './templates/site' have been replaced with the general BASE_DIR variable in the siteconfig. --- templates/feed.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/feed.xml (limited to 'templates/feed.xml') diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..a252134 --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,27 @@ + + + + {{ config.TITLE }} + {{ config.LINK }} + {{ config.DESCRIPTION }} + + {{ config.LANGUAGE }} + {{ config.PUBDATE }} + {{ config.LASTBUILDDATE }} + {{ config.DOCS }} + {{ config.GENERATOR }} + {{ config.AUTHOR }} + {{ config.WEBMASTER }} + {% for item in items %} + + {{ item.TITLE }} + {{ item.LINK }} + {{ item.LINK }} + {{ item.DESCRIPTION }} + {{ item.LAST_UPDATE }} + {{ item.SITE_DIR }} + {{ config.AUTHOR }} + + {% endfor %} + + -- cgit v1.2.3