aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-22 22:35:26 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-22 22:35:26 +0200
commit46310ea045e5d979c8cbbf343c9bf94ed95da8d8 (patch)
tree6c0d72f72ba413a212efbadf1c4f3a2329813239 /build.sh
parent3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb (diff)
downloadsebastiano.tronto.net-46310ea045e5d979c8cbbf343c9bf94ed95da8d8.tar.gz
sebastiano.tronto.net-46310ea045e5d979c8cbbf343c9bf94ed95da8d8.zip
Better blog page for gemini
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 8167303..f3aabf3 100755
--- a/build.sh
+++ b/build.sh
@@ -70,5 +70,21 @@ makeblog() {
70 echo "</rss>" >> $ff 70 echo "</rss>" >> $ff
71} 71}
72 72
73gemblog() {
74 bg=gemini/blog/index.gmi
75
76 printf "# Blog\n\n=> feed.xml RSS Feed\n\n" > $bg
77 for i in $(ls src/blog); do
78 if [ -d src/blog/$i ]; then
79 d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
80 t=$(head -n 1 $f | sed 's/# //')
81 echo "=> $i $d $t" >> $bg
82 fi
83 done
84 echo "" >> $bg
85 cat bottom.gmi >> $bg
86}
87
73makeblog 88makeblog
74recursivebuild src 89recursivebuild src
90gemblog

Generated with cgit - Back to sebastiano.tronto.net