This commit is contained in:
2025-04-25 23:14:39 +02:00
parent a3812457ef
commit b5c254457b
2 changed files with 24 additions and 9 deletions

15
genhtml.sh Executable file
View File

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