summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-22 17:51:38 -0500
committerJune McEnroe <june@causal.agency>2021-02-22 17:51:38 -0500
commit07dca01b6e9a4ce221ea181fef0a7647468c36ee (patch)
treeb56781d0ad8e440dbcbbb8021e347f040e9fee5c /www
parentAdd asciinema to sup (diff)
downloadsrc-07dca01b6e9a4ce221ea181fef0a7647468c36ee.tar.gz
src-07dca01b6e9a4ce221ea181fef0a7647468c36ee.zip
Iterate over text files to generate feed
So that only "published" text files are included.
Diffstat (limited to 'www')
-rw-r--r--www/text.causal.agency/feed.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh
index fe028621..f45bd326 100644
--- a/www/text.causal.agency/feed.sh
+++ b/www/text.causal.agency/feed.sh
@@ -23,8 +23,8 @@ encode() {
 	' "$@"
 }
 
-for entry in *.7; do
-	txt="${entry%.7}.txt"
+for txt in *.txt; do
+	entry="${txt%.txt}.7"
 	date=$(grep '^[.]Dd' "$entry" | cut -c 5-)
 	title=$(grep '^[.]Nm' "$entry" | cut -c 5- | encode)
 	summary=$(grep '^[.]Nd' "$entry" | cut -c 5- | encode)