Better performance. Higher security. Ease of scaling. It’s easy to see why you’d want to move to a SEO-friendly static site built on the Jamstack architecture, where your request times and build times are decoupled.
But with hundreds of static site generators (SSGs) to choose from, what’s the best way to generate your pages and assets?
You could start with the most popular, or the fastest-growing SSG. Or delve deeper, considering your team’s or your client’s experience and preferred workflows.
We’ll compare two excellent SSGs here: Hugo and Eleventy (11ty). Both work smoothly with our Git-based CMS. Both are optimised for fast content delivery and are capable of handling large sites with thousands of pages — sites like documentations, blogs, landing pages or marketing websites. But there are several key differences to consider.
Let’s see how they match up.
Hugo is a static site generator built with Go (a.k.a. Golang), released in 2013 by Steve Francia and actively (since version 0.14) maintained by Bjørn Erik Pedersen.
Hugo is incredibly widely supported by Jamstack hosts and CMSs, and has more than 100K live sites, largely because of its well-deserved reputation for speed, simplicity and flexibility. It bills itself as “the world’s fastest static website engine”, with build times on an average site of less than 1ms per page.
With great speed also comes great simplicity: Hugo is distributed as a single cross-platform binary, meaning unless you want additional dependencies (and there are plenty to choose from), your installations can be up and running sooner, with built-in functionalities like i18n, menus, sitemaps, feeds and image optimization. Themes? Hugo’s got them.
With Eleventy’s independent template engines, your content is firmly decoupled for future transitions — just in case a shinier generator comes along in the future.
|Themes||Yes (11ty uses the term 'starter'.)||Yes|
|Open source licence||MIT||Apache-2.0|
|Installation requirements||Via npm||None — Hugo is a single binary.|
|Multilingual and i18n||Via plugins||Built in|
|Easy Wordpress et al. converter||No; you’ll need to convert to Markdown and then clean up with layout templates.||Yes: gohugo.io/tools/migrations|
|Support communities||Eleventy Discord and eleventy-community both have helpful communities.||Hugo Discourse is a full-service forum with many active users.|
|Twitter accounts||Eleventy Twitter||Hugo Twitter|
* See star-history.t9t.io/#11ty/eleventy&gohugoio/hugo for a comparison over time. It’s always also worth noting that GitHub stars are solely a metric for how many users have pressed the star button — some do this to indicate a favorite repository, but others use the star system to follow active development, to be recommended similar projects, or just to support friends.
It’s a question of preference and your confidence, really. Both Eleventy and Hugo have impressively low build times. Both are content-focused, and both are under active development with large communities of users. (Granted, one community is significantly larger than the other…) Finally, both Eleventy and Hugo support, if not encourage, progressive enhancement of a project — they allow you to provide the essential content first and add dynamic functionality later.
But the choice likely boils down to what you already know, and what you want to learn. Which languages and frameworks suit your development team? Or your client?
Choose Hugo if you’re comfortable working with Go, plan on having many thousands of posts or pages on your site, and you enjoy a steep learning curve. Hugo’s support community is very helpful for those starting out.
Choose Eleventy if you’re newer to the SSG world, your workflow includes collaborative development across different languages, or you intend to pass your site over to a client whose developers use anything other than Go. Sitting in the sweet spot between minimal and flexible, Eleventy is easy to theme and extend, and with its gentle learning curve it’s ideal for SSG beginners.
Whichever you choose, CloudCannon can help make your SSG experience even easier, from instant testing domains to a robust editor. Our learning path for Hugo is already established, and over the coming weeks we'll roll out a series of blog posts, comparisons and tutorials for Eleventy, enabling you to get up and running as soon as possible. Whether you sync from your repository or CloudCannon’s Git-based CMS, you and your team will always stay up to date.
Give your content team full autonomy on your developer-approved tech stack with CloudCannon.
Jaimie McMahon · 16 May 2023
David Large · 14 Apr 2023
David Large · 27 Mar 2023