Oooh..reminds me of something similar I did earlier for own blog a few years back: https://github.com/proxygeek/publish/
I have moved away to Jekyll again but there's always something alluring about single file things - single file webapps, single file LLMs (llamafile) and others