diff --git a/blog/recent.sh b/blog/recent.sh index f659eb4..f8c0436 100644 --- a/blog/recent.sh +++ b/blog/recent.sh @@ -1,4 +1,14 @@ #!/usr/bin/env bash printf "Content-type: text/html\n\n" + +three_latest=\ + "$(fd '\d{4}-\d{2}-\d{2}-.*\.md' /blog/content | sort -r | head -n 3)" + +for i in three_latest; do + printf "\n
\n\n" + lowdown $i +done + + printf "

this is the recentest post lol

"