diff options
author | June McEnroe <june@causal.agency> | 2021-10-24 18:16:42 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-24 18:16:42 -0400 |
commit | bf1f07d848a13f4286223b3bd6c0ce7ff9f50cbe (patch) | |
tree | 01906c75b4aae5930c2fbd9903e9a0bdc66b475f /www | |
parent | Add Berserk (diff) | |
download | src-bf1f07d848a13f4286223b3bd6c0ce7ff9f50cbe.tar.gz src-bf1f07d848a13f4286223b3bd6c0ce7ff9f50cbe.zip |
Only match first Nm for feed
Diffstat (limited to 'www')
-rw-r--r-- | www/text.causal.agency/feed.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh index 53964cfb..668046ef 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") |