kleine Änderungen:
All checks were successful
ci/woodpecker/push/build_and_copy_blog Pipeline was successful
All checks were successful
ci/woodpecker/push/build_and_copy_blog Pipeline was successful
Autor:innen und Datum ergänzt Lesezeit entfernt
This commit is contained in:
parent
222b7ce465
commit
f8eda6b308
23 changed files with 115 additions and 17 deletions
17
sb/scripts/add-metadata-author-and-date.sh
Executable file
17
sb/scripts/add-metadata-author-and-date.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# script im root dir ausführen
|
||||
working_directory=$(basename $(pwd))
|
||||
if [ "$working_directory" != "FOERBICO" ]; then
|
||||
echo "not in root dir 'FOERBICO'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
find sb/content/posts -type f -name 'index.md' | while read FILE ;
|
||||
do
|
||||
awk -f sb/scripts/move-author.awk $FILE > $FILE.out
|
||||
awk -f sb/scripts/move-date.awk $FILE.out > $FILE.out2
|
||||
mv $FILE.out2 $FILE
|
||||
rm $FILE.out
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue