If you want a flexible template, checkout my site's Github: https://github.com/thebrandonlucas/blu
I've managed to get it to where you can just upload things to the `md` folder as markdown, and it auto-deploys to my site's VPS via a Github action and it just works. But because it's written in svelte, you have full flexibility to code up whatever else you want if needed. I spent a lot of time building it that way so I could have the low barrier to publishing while also having the full power of a webapp if I later wanted it. Sounds at least on track for what you're looking for.