placeholder

This commit is contained in:
2025-04-25 22:57:45 +02:00
parent cb1452c6f2
commit 9fdfea7542
2 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,10 @@ for entry in notes/*
do
filename=$(basename "$entry" .md)
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
t+="{\"source\":\"$entry\",\"dest\":\"public/posts/$filename_$timestamp\",\"time\":\"$timestamp\"},"
dest="public/posts/$timestamp"
dest+="_$filename"
dest+=".html"
t+="{\"source\":\"$entry\",\"dest\":\"$dest\",\"time\":\"$timestamp\"},"
done
echo "${t%?}]"

View File