mdwiki test starts
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-04-14 22:22:45 +02:00
parent 5c7ee2266a
commit b2249c06e9
143 changed files with 8463 additions and 215 deletions

12
content/snippet-indexer.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
SNIPPETS_DIR=./snippets
SNIPPETS_INDEX=snippets.md
echo "# Snippets" > $SNIPPETS_INDEX
for I in `ls $SNIPPETS_DIR | sort -r`; do
TITLE=`head -4 $SNIPPETS_DIR/$I | awk '/^title:/ { sub($1 FS, ""); print }'`
DATE=`head -4 $SNIPPETS_DIR/$I | awk '/^date:/ { sub($1 FS, ""); print }'`
echo "- [$TITLE ($DATE)]($SNIPPETS_DIR/$I)" >> $SNIPPETS_INDEX
done