- commit
- f730fcd7ae46f7e5e6f3bdd43f474b592f83eb54
- parent
- d21af171ff76f401633c70e780dfa62a4f0629b0
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-03-26 00:49
convert homepage to simple markdown
Diffstat
M | posts.sh | 9 | +-------- |
1 files changed, 1 insertions, 8 deletions
diff --git a/posts.sh b/posts.sh
@@ -1,13 +1,6 @@ 1 1 #!/bin/sh 2 23 -1 echo "---"4 -1 echo "posts:"5 -16 3 ls _content/posts | tac | while read -r l; do 7 4 yml="_content/posts/$l/index.md"8 -1 echo " - url: /posts/$l/"9 -1 echo " $(grep '^title:' "$yml" | head -n 1)"10 -1 echo " $(grep '^date:' "$yml" | head -n 1)"11 -1 echo " $(grep '^tags:' "$yml" | head -n 1)"-1 5 echo "- [$(grep '^title:' "$yml" | head -n 1 | sed 's/title: //;s/^"\(.*\)"$/\1/')](/posts/$l/)" 12 6 done13 -1 echo "---"