Welcome to our inclusive community of web designers, developers and makers.
Creating an account takes less than 30 seconds, start participating right away!
Create account

What is your static site generator of choice and why?

What is your static site generator of choice?

  • Jekyll

    Votes: 1 16.7%
  • Hugo

    Votes: 0 0.0%
  • Nuxt

    Votes: 1 16.7%
  • Gatsby

    Votes: 2 33.3%
  • Next.js

    Votes: 0 0.0%
  • Hexo

    Votes: 0 0.0%
  • VuePress

    Votes: 0 0.0%
  • Other

    Votes: 3 50.0%

  • Total voters
    6
  • Poll closed .

fbnlsr

Member
Gold Member
Joined
Oct 13, 2019
Messages
70
Reaction score
57
Points
80
Location
Bordeaux, France
Local Time
Today, 20:40
Website
www.primative.net
I'd be interested in knowing what is your static generator of choice, what do you like about it, and what are the cons?

I've been using Jekyll for years until I got super tired of the Ruby stack which is a total pain to manage. I switched to Hugo a couple of years ago, and while I like the fact that it's fast and contained in a single binary, its templating syntax is absolutely horrendous to use.

Let's talk static! 😀
 

Gummibeer

Well-known member
Joined
Oct 5, 2019
Messages
546
Reaction score
424
Points
605
Age
26
Location
Hamburg, Germany
Local Time
Today, 20:40
Website
gummibeer.de
No, and yes.

At the end it's a package that doesn't care about your app (except it should be Laravel/Lumen). It only provides the most common and simple features without limiting your possibilities. So it should be quite simple to create a GUI for it, it's based on files (markdown, yaml frontmatter, json, yaml). So you can simply create a GUI that writes files. But you can also register a custom sheet repository that loads from DB.

The static export is an option and based on spatie/laravel-export - it can copy files (JS, CSS) and also export generated HTML from your routes.

The documentation should cover the most important things atm (nearly everything the package can do).
 

tungu

Member
Joined
Oct 6, 2019
Messages
13
Reaction score
9
Points
225
Age
26
Location
France
Local Time
Today, 20:40
Website
tungu.me
My favorite is 11ty for its simplicity and variety of template languages.
I also like Middleman.

But you really need to check Unibit by Stackbit.
It uses Nunjucks and automatically converts to Jekyll, Hugo or Gatsby.

It comes with Uniform and is ready for use with Forestry, NetflifyCMS, Contentful, DatoCMS or Sanity.
 

Pmcp

Member
Joined
Oct 23, 2019
Messages
8
Reaction score
4
Points
5
Location
Brussels
Local Time
Today, 20:40
11ty does look nice indeed.

I've read about Gridsome today and it looks really interesting.
Coming from Nuxt, I'm now trying Gridsome for the first time and really digg it. It's not necessarily better / more powerful, but I like the choices they made 🙌
 

kilian

Member
Joined
Oct 7, 2019
Messages
20
Reaction score
15
Points
5
Location
Zoetermeer, Netherlands
Local Time
Today, 20:40
Website
kilianvalkhof.com
Pronouns
he/him
I use Gatsby for most since I like writing React, but for something super simple I'll use Harp, since it does so much automatically without configuration (like sass, markdown and ejs compilation).
 
Last edited:
  • Like
Reactions: ek1

ek1

Member
Joined
Oct 6, 2019
Messages
60
Reaction score
64
Points
275
Location
Halifax
Local Time
Today, 16:40
Website
erinknowles.com
Pronouns
She/her
Not an expert but what I've seen of Gatsby has been great, up and running in minutes, plus I'm most comfortable with React. I'll definitely turn to it in the future. I've also never played with it but I hear 11ty is good too.
 
Last edited:

Dominic

Member
Joined
Oct 5, 2019
Messages
97
Reaction score
65
Points
230
Location
Zurich
Local Time
Today, 20:40
Website
dominiclooser.ch
I used Harp for some years for my personal pages. What I liked about it:

works different formats without configuration
What I didn't like:

Data files are just in JSON, which I don't like to write by hand.
I configured grunt to convert YAML files to JSON, but now there were two versions of the same data file around.

I don't like the organization of the date files, it's too complex with larger sites.
Because of these pain points and because it's practically unmaintained, I looked for an alternative.
It was hard to find something, which had everything I wanted, although there are so many
of them. What I want:
  • TOML or YAML for data files
  • Stylus for styles
  • Pug for page templates
  • Coffeescript for Javascript
First, I thought I had found with Hexo what I wanted. Until I got into limitations with the handling
of data files. So I decided to make my own one, which does exactly what I want. It was easier
than I thought. I did everything with grunt because I already had experience in
transforming files with it. Grunt is dead, I know, but hey, it still works and written in Coffeescript
the Gruntfile looks quite nice. I have now the following folder structure:

  • data (markdown, YAML or TOML files)
  • dynamic (stuff to processs like styles, scripts and pug templates)
  • static (files to just copy)
  • out (generated page is here)
  • config.toml (configuration)

There is more to say to it. I build something I call 'generators' to define how pages get generated from
different data files. Say for example, you have one data file for a portfolio item, and a template. And
want to generate a page for every portfolio item.

I'm too tired now to write more ... ;) But I really like static page generators. Nice topic!
 
Last edited:

fbnlsr

Member
Gold Member
Joined
Oct 13, 2019
Messages
70
Reaction score
57
Points
80
Location
Bordeaux, France
Local Time
Today, 20:40
Website
www.primative.net
Up!

I studied a bit of Zola's documentation and while it seemed absolutely perfect at first, it lacks one critical feature: the ability to browse and parse data files stored in a specific folder. I'm using Staticman to handle the comments on my blog, and I need to ability to do that. It's a shame that it can't, as it'd have been a perfect choice to replace Hugo. I'll probably switch to Gridsome then, I first need to read the documentation.

I might still use Zola, as it's really elegant, but I might have to chose another service to handle the comments on my blog. We'll see. 🙂
 

blaq

Member
Joined
Oct 18, 2019
Messages
15
Reaction score
4
Points
5
Location
Philadelphia, PA
Local Time
Today, 14:40
come on guys ... dont be haters everyone knows that Hugo is the best of all...
 

Gummibeer

Well-known member
Joined
Oct 5, 2019
Messages
546
Reaction score
424
Points
605
Age
26
Location
Hamburg, Germany
Local Time
Today, 20:40
Website
gummibeer.de
Hugo's template engine is just awful to deal with.
have you at least tried it? it the simplest compared the others and its SEO and customization is infinity
The best static site generator is the one who doesn't enforces a specific templating engine. 😉
 
  • Like
Reactions: Adam

fbnlsr

Member
Gold Member
Joined
Oct 13, 2019
Messages
70
Reaction score
57
Points
80
Location
Bordeaux, France
Local Time
Today, 20:40
Website
www.primative.net
have you at least tried it? it the simplest compared the others and its SEO and customization is infinity
Woah I honestly don't know how you can find Go's templating syntax simpler than any of the others. I mean look at Liquid, Textile, Tera or even Twig, they're a million time easier that that weird thing. Or maybe that's just me.

Also, my current site is done 100% using Hugo, so I know my pain. 😄
 
  • Like
Reactions: blaq

blaq

Member
Joined
Oct 18, 2019
Messages
15
Reaction score
4
Points
5
Location
Philadelphia, PA
Local Time
Today, 14:40
Woah I honestly don't know how you can find Go's templating syntax simpler than any of the others. I mean look at Liquid, Textile, Tera or even Twig, they're a million time easier that that weird thing. Or maybe that's just me.

Also, my current site is done 100% using Hugo, so I know my pain. 😄
well-tried jeklly once but I find Hugo easier
 

Gummibeer

Well-known member
Joined
Oct 5, 2019
Messages
546
Reaction score
424
Points
605
Age
26
Location
Hamburg, Germany
Local Time
Today, 20:40
Website
gummibeer.de
Gatsby all the way (I've had sites load in under .5 seconds)! I use Gatsby a lot, I'm currently experimenting with Ghost and Gatsby
Your site load time doesn't depend on your static site generator. 😉
It's not loaded on client side. Your host and source code are fundamental for your loading time.