diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-22 22:35:26 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-22 22:35:26 +0200 |
| commit | 46310ea045e5d979c8cbbf343c9bf94ed95da8d8 (patch) | |
| tree | 6c0d72f72ba413a212efbadf1c4f3a2329813239 | |
| parent | 3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb (diff) | |
| download | sebastiano.tronto.net-46310ea045e5d979c8cbbf343c9bf94ed95da8d8.tar.gz sebastiano.tronto.net-46310ea045e5d979c8cbbf343c9bf94ed95da8d8.zip | |
Better blog page for gemini
| -rwxr-xr-x | build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -70,5 +70,21 @@ makeblog() { | |||
| 70 | echo "</rss>" >> $ff | 70 | echo "</rss>" >> $ff |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | gemblog() { | ||
| 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 | |||
| 73 | makeblog | 88 | makeblog |
| 74 | recursivebuild src | 89 | recursivebuild src |
| 90 | gemblog | ||
