I've tried Jekyll in the past but the setup is a bit overwhelming and it gets complicated super fast. I am looking for something where I can keep my header and footer separate and then include them in every other page. That's it. No CMS and no blog. Is there something which handles this well and is easy to set up?
I use Cloudflare Pages to host my website
With SSI, your template for every page would basically look like this:
Making your own SSG is another good solution. They're easy to make, and you can tailor them to your own particular needs.Then I built that into a live update system I called TCUP (torstenvl's content update program).
It was a fun project, and ended up being the first non-trivial program I wrote (I was 17-18).
Quite simple to start, and a nice system to add some scripting and styles without the requirement of bringing in a framework.
I think a hundred or so well-chosen lines of your favourite scripting language can do wonders. Mine is ~300 lines of Bash because I over-engineered a thing or two for kicks. The core of it is maybe 50 lines.
[1] https://github.com/adityaathalye/shite
The README documents the architecture and rationale. Maybe it will help you figure out yours. Happy hacking!
So you only really need bottle and markdown in your requirements.txt, and around 100ish lines of code. Maybe a little more if you want to upload the results to Cloudflare directly (for which I’d use requests).
You can rinse and repeat that with aiohttp and markdown if you want the async flavor (which is what I’d do these days if I hadn’t already “finished” mine).
And, if you’re into LISP… https://github.com/rcarmo/sushy might make for some fun reading.
Cloudflare page for deploying Next.js static site:
https://developers.cloudflare.com/pages/framework-guides/nex...
On the sidebar they provide a ton of other guides for different generators, too.