From dd75b4a341925e4ba3408b018941241d4317dd9f Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 7 Jun 2021 21:47:07 -0400 Subject: updated with cgi scripts to create on-the-fly rss and index --- cgi-bin/rss.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 cgi-bin/rss.sh (limited to 'cgi-bin/rss.sh') diff --git a/cgi-bin/rss.sh b/cgi-bin/rss.sh new file mode 100755 index 0000000..6987745 --- /dev/null +++ b/cgi-bin/rss.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Generates an RSS feed from all posts. + +cat << EOH +content-type: application/xml + + + + + + 53hornet's Feed + https://www.53hor.net + + The World Wide Web pages of Adam Carpenter + + https://www.53hor.net/includes/logo_diag.png + 53hornet's Feed + https://www.53hor.net + +EOH + +grep '

' posts/*\ + | sort -r\ + | sed -e 's#h1#title#g' -e 's#:##' -e 's#$##' -e 's#^#https://www.53hor.net/#' + +echo '' + -- cgit v1.2.3