From 162d8c670324960ac6070cfb45f9e85e1304857c Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Wed, 17 Aug 2022 17:12:47 -0400 Subject: [PATCH] Initial implementation of HPR RSS feeds template Add templates and macros to create main HPR OGG feed. --- site.cfg | 5 +++ templates/rss-hpr_ogg.tpl.xml | 5 +++ templates/rss-query-hpr.tpl.xml | 23 ++++++++++++++ templates/rss.tpl.xml | 56 +++++++++++++++++++++++++++++++++ templates/shared-item.tpl.xml | 20 ++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 templates/rss-hpr_ogg.tpl.xml create mode 100644 templates/rss-query-hpr.tpl.xml create mode 100644 templates/rss.tpl.xml create mode 100644 templates/shared-item.tpl.xml diff --git a/site.cfg b/site.cfg index 715f10d..a83389e 100644 --- a/site.cfg +++ b/site.cfg @@ -131,3 +131,8 @@ content: content-promote.tpl.html [sitemap] navigation: navigation-about.tpl.html content: content-sitemap.tpl.html + +[hpr_ogg] +root_template: rss.tpl.xml +content: rss-hpr_ogg.tpl.xml +filename: hpr_ogg.rss diff --git a/templates/rss-hpr_ogg.tpl.xml b/templates/rss-hpr_ogg.tpl.xml new file mode 100644 index 0000000..3b012a8 --- /dev/null +++ b/templates/rss-hpr_ogg.tpl.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/templates/rss-query-hpr.tpl.xml b/templates/rss-query-hpr.tpl.xml new file mode 100644 index 0000000..53e32c2 --- /dev/null +++ b/templates/rss-query-hpr.tpl.xml @@ -0,0 +1,23 @@ + + + + diff --git a/templates/rss.tpl.xml b/templates/rss.tpl.xml new file mode 100644 index 0000000..647fc9d --- /dev/null +++ b/templates/rss.tpl.xml @@ -0,0 +1,56 @@ + + + + + Hacker Public Radio + https://www.hackerpublicradio.org/about.html + A daily show hosted the community on topics that are of interest to hackers and hobbyists. + Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists. + en-us + + + + + + + + yes + Hacker Public Radio + Community Radio, Tech Interviews, Linux, Open, Hobby, Software Freedom + Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License + feedback@NOSPAM-hackerpublicradio.org (HPR Feedback) + + + HPR Volunteer + admin@hackerpublicradio.org + + admin@hackerpublicradio.org (HPR Volunteer) + site-generator + http://www.rssboard.org/rss-specification + 43200 + + Saturday + Sunday + + + https://www.hackerpublicradio.org/images/hpr_feed_small.png + Hacker Public Radio + https://www.hackerpublicradio.org/about.php + The Hacker Public Radio Old Microphone Logo + 164 + 144 + + HPR Volunteer + Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists. + admin@hackerpublicradio.org + + + + + + + + diff --git a/templates/shared-item.tpl.xml b/templates/shared-item.tpl.xml new file mode 100644 index 0000000..0efa380 --- /dev/null +++ b/templates/shared-item.tpl.xml @@ -0,0 +1,20 @@ + + + + + + HPR<!--% zero_pad_left(episode.id) %-->: <!--% episode.title %--> + () + () + () + + https://www.hackerpublicradio.org/eps/hpr//index.html + ]]> + + ]]> + + + + http://hackerpublicradio.org/eps/hpr. + +