2023-12-04 03:32:14 +00:00
#!./page.sh -s
2023-06-12 23:12:02 +00:00
2023-07-27 00:36:25 +00:00
entries="$(for f in entries/*.html; do echo $(git log --pretty=format:'%ct' --follow $f | tail -n 1) $f; done | sort -nr | cut -f2- -d' ')"
2023-06-12 23:12:02 +00:00
cat < < EOF
< div class = "grid" >
< div class = "about" >
2024-03-21 11:41:09 +00:00
< p > hi, i'm david and this is my website. i'm interested in all things esoteric as well as coding in < a href = "/git/shblg.git/tree/src/md2html.sh" > shell< / a > and playing around with free software. if you want to check out my projects, most of them can be found on < a href = "/git" > /git< / a > and an assorted list of older projects can be found on < a href = "/m/" > /m< / a > < / p >
2023-06-12 23:12:02 +00:00
< / div >
< div class = "image" >
< img src = "/images/remotecontrol.gif" >
< / div >
< / div >
EOF
cat < < EOF
< div >
< h2 > blog posts< / h2 >
< ul >
EOF
# list all the files in the directory
2023-07-27 00:36:25 +00:00
for file in $entries; do
2023-06-12 23:12:02 +00:00
title="$(grep '^# ' $file)"
title=${title#\# }
printf "
< li class = \"entry\" >
< a href = \"%s\" >
< span > %s< / span >
2023-07-25 18:22:41 +00:00
< div class = \"small\" > %s< / div >
2023-06-12 23:12:02 +00:00
< / a >
< / li >
2023-07-26 17:53:49 +00:00
" "${file%.*}.html" "$title" "$(git log --pretty=format:'%cD' --follow -- "$file" | tail -n 1)"
2023-06-12 23:12:02 +00:00
done
cat < < EOF
< / ul >
2024-03-21 11:18:31 +00:00
EOF
cat < < EOF
< div class = "left" >
< h2 > donate< / h2 >
< p > if you like what i do and you want to support me, consider donating < a href = "https://www.getmonero.org/" > Monero< / a > < / p >
< code > 49ECi71yshT6kvzFJKyvVDXLarVp9EGR54ZUw9ebqPetKn2kbaRavFG4FCG4MALkGXVZ16KM5c92MJ7vDWL7iwFs66Q1UQ2< / code >
< / div >
< div class = "right" >
< h2 > contact< / h2 >
< p > if you want to contact me, you can message me on matrix < code > @ix:davidovski.xyz< / code > or via the email linked at the top of the page.< / p >
< / div >
2023-06-12 23:12:02 +00:00
EOF