commit 9690f8948dca5fdb0ad492ed5a44b53e68a8af7c
parent 3eb7941bc731887864fc0df25be6eab981f67034
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Sun, 29 May 2022 12:49:40 +0200
Fixed gemini blog
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1,4 @@
http
gemini
-drafts
BLOG-IDEAS
HTML-TIPS
diff --git a/build.sh b/build.sh
@@ -73,10 +73,10 @@ gemblog() {
bg=gemini/blog/index.gmi
printf "# Blog\n\n=> feed.xml RSS Feed\n\n" > $bg
- for i in $(ls src/blog); do
+ for i in $(ls src/blog | sort -r); do
if [ -d src/blog/$i ]; then
d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
- t=$(head -n 1 $f | sed 's/# //')
+ t=$(head -n 1 src/blog/$i/*.md | sed 's/# //')
echo "=> $i $d $t" >> $bg
fi
done