Hacker News new | ask | show | jobs
by axyz 1928 days ago
Zola seem the most popular static site generator that allows you to generate a website without any JS bundle without using some strange hack.

This is the way I firstly stumbled upon it as I was looking for a fast way to generate a fully static site with the advantages of a generator and none of the overheads...

It may be limited for certain use cases but I think it would be my first choice for editing a static site without JS

3 comments

> Zola seem the most popular static site generator that allows you to generate a website without any JS bundle without using some strange hack.

I'd say Gatsby or NextJS are more popular due to being written in JS. They can both produce zero JS websites.

I doubt people who want to avoid javascript will use a javascript based static site builder.
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"

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

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?
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.
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.

Pelican can easily generate no-JS websites. If a theme doesn't include JS, there won't be any, and (wild guess) half the themes don't. It's also extremely easy to tweak most themes not to use JS.
I use Hugo and I have zero Javascript on my static site(s).

I didn’t use any existing theme though. I just added ~30 lines of HTML/template markup. No theme needed really, not for my purposes at least.