From e427b7d8fc53afdebfa903d43bd8fb3b9c209cc5 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Thu, 22 Feb 2024 20:44:48 +0100 Subject: BQN example programme discussion Also update update.sh to auto-generate recent post list --- update.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'update.sh') diff --git a/update.sh b/update.sh index 5cb69af..1259e4a 100755 --- a/update.sh +++ b/update.sh @@ -3,7 +3,18 @@ echo Generating index printf "# l-3.space: all\n\nAll content\n" > index-all.gmi for f in log*gmi; do - printf '=> gemini://l-3.space/%s %s\n' $f "$(grep '^# ' $f | head -n1 | cut -d\ -f2-)"; + printf '=> gemini://l-3.space/%s %s - %s\n' \ + $f\ + "$(head -n1 $f | sed 's/Time-stamp: <\([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\) ..h.. UTC>/\1/')"\ + "$(grep '^# ' $f | head -n1 | cut -d\ -f2-)"; done | sort -r >> index-all.gmi +ed index.gmi <