Hey, just wanted to drop this here. It’s a technical follow-up to The Unreasonable Effectiveness of Static Sites which was reasonably popular, and explains the components of a static site’s stack.
Just last week I decided to try a different tech than I’m used to to run up a site. I did a little research then searched GitHub and found Hugo. I read the Hugo docs, followed their beginners guide and… Didn’t get fucking anywhere. Their docs are out of date, the examples are out of date. It looked so promising but my brain works best when referencing examples and when I couldn’t even get those to work, well, I don’t have time for that these days.
If anyone knows another static site generator with up to date documentation and an easy to run up example please let me know.
I use Pelican for the site and it’s working great. :)
Astro is also popular and will be familiar if you’ve developed with React before as they support JSX templates.
Hugo was born out of Google so it has all of the same benefits and drawbacks as every Google project (both internal and external):
- Lots of capabilities. You name it, it’s a feature.
- To support all of those capabilites, there’s abstractions for everything – enough to make you go a little insane if you have to go through the code.
- Lacking documentation. Nobody gets promoted for writing docs, so if you really need to know how that feature works, you have to go through the code.
- May be abandoned at any time (but pull requests/CLs are always welcome).
I use https://quarto.org
Pros: Markdown, easy to use. Docs are very good. Also, despite being a a static site, it comes with fulltext site searching, all done locally, enabled by default:
https://quarto.org/docs/websites/website-search.html
It uses pandoc under the hood, so anything that works with pandoc works there.
Cons: No support for any kind of template engine beyond simple variable replacement, as far as I know.
That’s interesting, Hugo is the only SSG I’ve had luck with so far. I’m kind of stuck on Docusaurus at work and it’s a disaster.
On the face of things they’re all so simple, but aren’t documented well for users new to SSGs, and the build often spits out something unexpected with no way to figure out why.
11ty is great, especially since it’s very BYO in terms of templating languages. (I started with nunjucks until I figured out the magic that is webc.)
Hexo has been working great for me. I found the documentation great as well.
I use zola for my sites. It’s got not as many templates as hugo but my sites don’t use templates and I found it very straightforward to use from scratch.