- commit
- faecf41e4126e916034c72b11bd1c5fe3d3b814a
- parent
- 69eeaf7daadf89a299e0793fe92765caf57e6ba1
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-02-12 11:04
feed: fix parsing quoted title
Diffstat
M | feed.sh | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/feed.sh b/feed.sh
@@ -27,7 +27,7 @@ ls _content/posts | tac | $select | while read l; do 27 27 html="_content/posts/$l/index.html" 28 28 url="${base_url}posts/$l/" 29 29 echo ' <entry>'30 -1 echo " <title>$(grep '^title:' "$yml" | head -n 1 | sed 's/title: //' | escape)</title>"-1 30 echo " <title>$(grep '^title:' "$yml" | head -n 1 | sed 's/title: //;s/^"\(.*\)"$/\1/' | escape)</title>" 31 31 echo " <link href=\"$url\" />" 32 32 echo " <id>$url</id>" 33 33 echo " <updated>$(grep '^date:' "$yml" | head -n 1 | sed 's/date: //' | escape)T00:00:00Z</updated>"