aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-29 12:49:40 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-29 12:49:40 +0200
commit9690f8948dca5fdb0ad492ed5a44b53e68a8af7c (patch)
tree465d6a5dd7a970b3216fbd846fc54b0808eb1eec /build.sh
parent3eb7941bc731887864fc0df25be6eab981f67034 (diff)
downloadsebastiano.tronto.net-9690f8948dca5fdb0ad492ed5a44b53e68a8af7c.tar.gz
sebastiano.tronto.net-9690f8948dca5fdb0ad492ed5a44b53e68a8af7c.zip
Fixed gemini blog
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index bb9f478..c375359 100755
--- a/build.sh
+++ b/build.sh
@@ -73,10 +73,10 @@ gemblog() {
73 bg=gemini/blog/index.gmi 73 bg=gemini/blog/index.gmi
74 74
75 printf "# Blog\n\n=> feed.xml RSS Feed\n\n" > $bg 75 printf "# Blog\n\n=> feed.xml RSS Feed\n\n" > $bg
76 for i in $(ls src/blog); do 76 for i in $(ls src/blog | sort -r); do
77 if [ -d src/blog/$i ]; then 77 if [ -d src/blog/$i ]; then
78 d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}') 78 d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
79 t=$(head -n 1 $f | sed 's/# //') 79 t=$(head -n 1 src/blog/$i/*.md | sed 's/# //')
80 echo "=> $i $d $t" >> $bg 80 echo "=> $i $d $t" >> $bg
81 fi 81 fi
82 done 82 done

Generated with cgit - Back to sebastiano.tronto.net