News for hackers. Stuff that matters.
Re:Everything Easy is Hard Again (2018) by rectang on Saturday April 17, 2021 @02:04PM (#26846179)
Another thing I find weird is how bloated static typical site generator tools are. The delivery medium of static HTML is timeless. But the odds that a static site generator with dozens of dependencies will still work N years from now? Grim.
Re:Everything Easy is Hard Again (2018) by enriquto on Saturday April 17, 2021 @03:58PM (#26846987)
just write html by hand. With html5, implicit and auto-closing tags, it's really not more difficult than markdown. Then your "generator" is simply the cat program, that appends a common header and footer.
Re:Everything Easy is Hard Again (2018) by lenkite on Saturday April 17, 2021 @03:02PM (#26846587)
They all started off lean and mean. Then after adding feature after feature they become bloated. Then the next lean-and-mean static HTMl generator becomes vogue.
Re:Everything Easy is Hard Again (2018) by red_trumpet on Saturday April 17, 2021 @04:24PM (#26847160)
Bashblog[1] is pretty lean, and doesn't use any dependencies.

[1] https://github.com/cfenollosa/bashblog

Re:Everything Easy is Hard Again (2018) by vitejose on Saturday April 17, 2021 @08:31PM (#26848714)
One of the reasons I like Hugo: it's a single executable that will basically work forever. There's no need to update to a newer version if the one you have meets your needs.
Re:Everything Easy is Hard Again (2018) by nanna on Saturday April 17, 2021 @02:10PM (#26846216)
'Typically' meaning...? Jekyll? Gatsby?
Re:Everything Easy is Hard Again (2018) by nitrogen on Saturday April 17, 2021 @03:06PM (#26846615)
I have a couple of older static sites (one using Jekyll/Octopress, one using Middleman), and if I ever do a bundle update something is guaranteed to break. Not sure if that's the "bloat" the parent comment is talking about though.
Re:Everything Easy is Hard Again (2018) by cutler on Sunday April 18, 2021 @12:17AM (#26849758)
I've been using Perl Template::Toolkit since around 2001 and it's even better since version 3 was released. Worth a try. You don't even need to know Perl to make use of it.
Re:Everything Easy is Hard Again (2018) by laurent92 on Saturday April 17, 2021 @03:07PM (#26846622)
Yes. I was on Jekyll 2 years ago, I don’t think I’ll be able to compile it in two years. It’s already on an old version of Ruby if I remember, if not Bundle or Gulp or... and it’s just a simple website.
Re:Everything Easy is Hard Again (2018) by blacktriangle on Sunday April 18, 2021 @01:01PM (#26854171)
I've had this exact issue with my Middleman sites.
Re:Everything Easy is Hard Again (2018) by brunoluiz on Sunday April 18, 2021 @06:32AM (#26851319)
That is why I've changed to Hugo (from Hexo & Gatsby). It does exactly what is supposed to, it doesn't import any dependencies and it is quite fast. Besides, no runtime is required.

I thought about plain HTML, but writing blog articles with it is a bit of a pain. Hugo was quite the right balance.

Re:Everything Easy is Hard Again (2018) by tomgp on Monday April 19, 2021 @03:11AM (#26859870)
agreed, but for me the appeal of static site generation is that the input is typically just markdown and some templates so even if a particular generator ceases to be supported it should be trivial to drop in a replacement in whatever the currently fashionable language is.