I did it in Rust, because I wanted to learn Rust.
It just takes a directory structure with markdown files, and converts each file to HTML while adding a header and footer. I use it on a few sites now, and honestly I should redo the code but it works conveniently and I have other stuff to do.
Oh, and my stack is nginx on Alpine currently.
Edit:
Code is here: https://git.sr.ht/~evan-hoose/SSSSS
It really is not great code. It even shells out to markdown to do the rendering - bad for all sorts of obvious reasons. (but the right choice for my use case).
If you want to use it, be my guest. Just know that it's bad and ugly and you could write it better yourself in not very long.