This commit is contained in:
2025-08-01 13:17:28 +02:00
parent e744f05fe9
commit 5412facc43
9 changed files with 1569 additions and 1 deletions

16
gen_posts.sh Executable file
View File

@@ -0,0 +1,16 @@
html='<ul class="posts">'
for entry in notes/*
do
filename=$(basename "$entry" .md)
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
#this don't work for now
#dest="/posts/$timestamp"
dest="/posts/$filename"
dest+=".html"
html+="<li class=\"postli\"><a class=\"posta\" href=\"$dest"
html+="\">$timestamp"
html+="_$filename</a></li>"
done
html+="</ul>"
echo $html