News for hackers. Stuff that matters.
Re:Minimum Viable Hugo – No CSS, no JavaScript, 1 static HTM... by superkuh on Monday February 27, 2023 @12:48PM (#34959534)
I'm not being sarcastic. It is what I've done for 20+ years (although I only switched from thttpd to nginx in ~2010). The linked article does not really teach you how to use hugo. It just shows how to generate a single page, and there are far better ways to do that.

And like others have said, nginx comes with server side includes built in. It's the perfect amount of dynamic templating power with the minimal attack surface. Before anyone jumps in with, "but I can deploy (or other cargo cult terms) my website to a CDN if I use Hugo for templating." I question the utility and complexity of bringing in a CDN in this, minimum viable context or any personal website context.

Re:Minimum Viable Hugo – No CSS, no JavaScript, 1 static HTM... by count on Monday February 27, 2023 @02:07PM (#34960563)
I can deploy [sic] my website to a static file serving service for virtually free (e.g. S3, GitHub Pages, Azure Static Sites, etc.) without having a CDN and without having to worry about renewing SSL certs, managing a full linux instance or container, patching the web server when stuff gets hacked, doing maintenance, etc.

There's a ton of value in 'just static pages', and if you do more than 1, not writing your own HTML is pretty great.