web/blog/recent.sh

14 lines
260 B
Bash
Executable File

#!/usr/bin/env bash
printf "Content-type: text/html\n\n"
three_latest="$(fd '\d{4}-\d{2}-\d{2}-.*\.md' ./content | sort -r | head -n 3)"
for i in $three_latest; do
printf "<br><hr>\n"
lowdown $i
done
printf "<p>this is the recentest post lol</p>"