From badd07e40c80bcf8252e20b2df87af0f197f3ce1 Mon Sep 17 00:00:00 2001 From: yctct Date: Wed, 22 Apr 2026 16:44:37 +0200 Subject: First commit, add files --- share/feed.uppxml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 share/feed.uppxml (limited to 'share/feed.uppxml') diff --git a/share/feed.uppxml b/share/feed.uppxml new file mode 100644 index 0000000..3203ecf --- /dev/null +++ b/share/feed.uppxml @@ -0,0 +1,42 @@ + + + + Become Digitally Sovereign + https://copyleftculture.com + Blog posts on digital sovereignty + en-gb + + 60 +#! +now=`date -R` +#! + ${now} +#! +for f in `ls -t blog/*.html` +do +if [ $(basename "${f}") != "index.html" ]; then + title=`sed -n 's/.*

\(.*\)<\/h1>.*/\1/ip;T;q' ${f}` + title=${title% |*} + desc=`sed -n 's/.*

\(.*\)<\/h2>.*/\1/ip;T;q' ${f}` + linque=$1/blog/$(basename "${f}") + pubDate=${f#blog/} + pubDate=${pubDate%%-*} + pubDate=`date -R -d ${pubDate}` + content=`sed -n '/
/,/<\/main>/{//!p;}' ${f}` +#! + + ${title} + ${linque} + ${linque} + ${desc} + ${pubDate} + + +#! +fi +done +#! + + + + -- cgit v1.2.3