summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-24 18:16:42 -0400
committerJune McEnroe <june@causal.agency>2021-10-24 18:16:42 -0400
commit11f1027760e86ba2562e6e5bc333cc0c1c95cc3c (patch)
tree88f8066ec576aca015ae1ce13a4a82741e23e6c7
parentAdd Berserk (diff)
downloadsrc-11f1027760e86ba2562e6e5bc333cc0c1c95cc3c.tar.gz
src-11f1027760e86ba2562e6e5bc333cc0c1c95cc3c.zip
Only match first Nm for feed
-rw-r--r--www/text.causal.agency/feed.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh
index 53964cf..668046e 100644
--- a/www/text.causal.agency/feed.sh
+++ b/www/text.causal.agency/feed.sh
@@ -28,7 +28,7 @@ shift $(( $# - 20 ))
 for txt; do
 	entry="${txt%.txt}.7"
 	date=$(grep '^[.]Dd' "$entry" | cut -c 5-)
-	title=$(grep '^[.]Nm' "$entry" | cut -c 5- | encode)
+	title=$(grep -m 1 '^[.]Nm' "$entry" | cut -c 5- | encode)
 	summary=$(grep '^[.]Nd' "$entry" | cut -c 5- | encode)
 	published=$(date -ju -f '%B %d, %Y %T' "${date} 00:00:00" '+%FT%TZ')
 	mtime=$(stat -f '%m' "$entry")