News for hackers. Stuff that matters.
Re:State of Self-Serve Website Building in 2020 by CJefferson on Friday September 11, 2020 @10:52AM (#24443453)
Is there any static website builders which make it easy to execute code at build time?

They all have a templating language, and sometimes I just wanna write a quick function to do something like read a file, chop something out and wrap it in some html -- something that would take 8 lines of Python.

Re:State of Self-Serve Website Building in 2020 by lattice_epochs on Friday September 11, 2020 @10:59AM (#24443529)
Probably mentioned earlier but I'd recommend Gatsby if you're just looking for a simple static site.

Though, we switched over to Next recently to take advantage of SSR.

Re:State of Self-Serve Website Building in 2020 by CJefferson on Friday September 11, 2020 @11:01AM (#24443559)
I'll have a look -- I've previously tried Hugo, pelican and Jekyll and while pelican and Jekyll provide extensions, they just seem so heavyweight to write.