From 748d935dc313439c3d6cd88d97bf2d28ed48200a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 26 Nov 2020 21:17:04 -0500 Subject: Render content into atom feed And fix some atom lints. --- www/text.causal.agency/feed.sh | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'www') diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh index de9e7c54..fe028621 100644 --- a/www/text.causal.agency/feed.sh +++ b/www/text.causal.agency/feed.sh @@ -4,33 +4,50 @@ set -eu readonly Root='https://text.causal.agency' updated=$(date -u '+%FT%TZ') -cat <<- EOF +cat <<-EOF Causal Agency Junejune@causal.agency - ${Root} + + ${Root}/ ${updated} EOF +encode() { + sed ' + s/&/\&/g + s/ ${title} ${summary} - - ${url} + + ${Root}/${txt} ${published} ${updated} - + +
+ EOF + printf '
'
+	encode "$txt"
+	cat <<-EOF
+		
+
+
EOF done -- cgit 1.4.1