blog

git clone https://git.ce9e.org/blog.git

commit
edbcc04e269fdd37dca8e9ef2473dfae79f1b00a
parent
35fd5a415ec88cfe60236749d8ced9698773d272
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-02-12 11:07
simplify posts.sh

Diffstat

M posts.sh 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/posts.sh b/posts.sh

@@ -6,8 +6,8 @@ echo "posts:"
    6     6 ls _content/posts | tac | while read l; do
    7     7 	yml="_content/posts/$l/index.md"
    8     8 	echo "  - url: /posts/$l/"
    9    -1 	echo "    title: $(grep '^title:' "$yml" | head -n 1 | sed 's/title: //')"
   10    -1 	echo "    date: $(grep '^date:' "$yml" | head -n 1 | sed 's/date: //')"
   11    -1 	echo "    tags: $(grep '^tags:' "$yml" | head -n 1 | sed 's/tags: //')"
   -1     9 	echo "    $(grep '^title:' "$yml" | head -n 1)"
   -1    10 	echo "    $(grep '^date:' "$yml" | head -n 1)"
   -1    11 	echo "    $(grep '^tags:' "$yml" | head -n 1)"
   12    12 done
   13    13 echo "---"