News for hackers. Stuff that matters.
Re:Zola: A fast static site generator in a single binary by ibraheemdev on Friday March 05, 2021 @11:50AM (#26358958)
I doubt people who want to avoid javascript will use a javascript based static site builder.
Re:Zola: A fast static site generator in a single binary by ThePadawan on Friday March 05, 2021 @12:45PM (#26359622)
I made that choice, based on two completely separate wishes:

- "I want my visitors to be able to view this static page without enabling JS" and

- "I already know React, I might as well just write this in TSX"

Re:Zola: A fast static site generator in a single binary by cercatrova on Friday March 05, 2021 @11:56AM (#26359030)
See my other comment [0], it seems only JS based ones use stuff like composition of content while most others are template-based, which is not as powerful.

[0] https://news.ycombinator.com/item?id=26358978

Re:Zola: A fast static site generator in a single binary by mhd on Friday March 05, 2021 @09:12PM (#26364610)
Isn't that a bit like saying that people who want small web pages wouldn't want to use hugo, as it's a 60 megabyte binary?
Re:Zola: A fast static site generator in a single binary by ibraheemdev on Saturday March 06, 2021 @12:45AM (#26365511)
No not really. There is a large anti-javascript crowd who avoid anything and everything js based, and frameworks like Gatsby and NextJS require you to interact with js and its tooling.
Re:Zola: A fast static site generator in a single binary by mhd on Saturday March 06, 2021 @08:26AM (#26367183)
With those two as the examples, I'd definitely agree with that. I'd regard both as frontend frameworks and I've never heard Next described as a SSG, though, but Gatsby seems to be used as such by fans of reckless overengineering (because I definitely need GraphQL for my blog).

Eleventy would be quite a bit closer to Hugo/Zola, but even then you'd have to use npm/npx to install and run it.