Eleventy (11ty) vs. Jekyll
Welcome to the static world. Your sites scale easily, load faster and more efficiently, and you and your clients are already seeing the benefits. The Jamstack ecosystem is thriving, with tools and support for static sites growing day by day, and CloudCannon has just launched Eleventy support, alongside Jekyll and Hugo. Thereâs never been a better time to be a web developer. But we return to the perennial question: which static site generator (SSG) should you choose for your next project?
Here weâll compare two distinctly different SSGs: Jekyll and Eleventy. Theyâre both fully compatible with CloudCannonâs Git-based CMS, and both are ideal for marketing sites (such as this one, built with Jekyll), as well as documentation and blogs. But let's compare and contrast, shall we?
What is Jekyll?
Tom Preston-Wernerâs âsimple, blog-awareâ SSG, released in 2008, kicked off the recent web dev trend towards static sites: Jekyll is the basis of GitHub Pages, serving verbatim or Markdown files to visitors, and enabling GitHub users to host their own blogs, documentation, and even books. Written in Ruby by Preston-Werner, Jekyll has since been maintained by Parker Moore, and is currently sitting at version 4.2.0. Nice.
Because Jekyll has been around for so long, thereâs a huge amount of documentation, support, plugins and templates available for users. Think about it like this: the existing users have asked the tough questions and largely figured out the edges of the generator so you donât have to.
Sites made with Jekyll
- http://rubyonrails.org/ (See our deep dive into the Ruby on Rails site and how it uses Jekyll)
- https://developer.spotify.com/
- https://dev.twitch.tv/
- https://login.gov/
- https://cloudcannon.com/ (This site â youâre here right now!)
What is Eleventy?
Eleventy, released in 2018 by Zach Leatherman, is a JavaScript alternative to Jekyll, built for speed and flexibility. Zero-config by default, but incredibly flexible if customization is your thing, Eleventy can build several times faster than an equivalent Jekyll site.
For many developers, part of Eleventy's appeal is that it doesnât make assumptions about your content. The default hierarchies are logical if you're starting a new project, but you can also bring over your existing project files and directory structures, and just point Eleventy in the right direction.
For those developers who like to flex their fingers from time to time â or who have existing SSG projects written using related template engines â Eleventy supports no fewer than ten templating languages: HTML, Markdown, JavaScript, Liquid, Nunjucks, Handlebars, Mustache, EJS, Haml, and Pug. Choose your favorite, or use them all side by side.
Sites made with Eleventy
- https://www.11ty.io/
- https://eu-testbook.com/
- https://web.dev/
- https://templates.netlify.com/
- https://splitinfinities.com/
Letâs compare
Comparison | Jekyll | Eleventy |
---|---|---|
First release | 2008 | 2018 |
Built with | Ruby | JavaScript |
Templating engine(s) | Liquid | JavaScript, HTML, Markdown, Liquid, Nunjucks, Handlebars, Mustache, EJS, Haml, Pug |
Plugins | Yes, via Ruby Gems | Yes |
GitHub stars | 43K+ | 9K+ |
Themes | Yes | Yes (11ty uses the term âstarterâ.) |
Open source licence | MIT | MIT |
Installation requirements | Ruby must be installed. | Via npm |
Build speeds | Fast-adjacent, though growing sites build increasingly slowly. | Faster |
Multilingual and i18n | Via plugins | Via plugins |
Shortcodes | Yes | Yes |
Easy Wordpress et al. converter | Yes: Jekyll converter | No; youâll need to convert to Markdown and then clean up with layout templates. |
Learning curve | Gentle, especially if you have Ruby experience. | Slightly more gentle, especially if you have JavaScript experience |
Documentation | jekyllrb.com/docs/ | 11ty.dev |
Support communities | Jekyll Talk Gitter | Eleventy Discord and eleventy-community both have helpful communities. |
Twitter accounts | Jekyll Twitter | Eleventy Twitter |
GitHub repos | github.com/jekyll | github.com/11ty/eleventy |
Which should I choose?
For experienced developers, the choice likely wonât be as simple as picking sides between Ruby and JavaScript. Beginners will likely find Eleventy a more straightforward proposition, though the historic wealth of documentation and support for Jekyll may well sway those who prefer their paths well-traveled.
Neither Jekyll nor Eleventy is difficult to set up on your local machine, though in any case, CloudCannon makes setting up (and connecting to your chosen Git repo) a single-click proposition.
Choose Jekyll if you want a quick solution to importing existing blogs from legacy dynamic monoliths. For new Jekyll builds youâll find dates, drafts and sorting posts are ready to use immediately, but as some users have pointed out, Jekyll has a relatively strict structure, meaning it can be more difficult to customize. Jekyll build times might remain a concern for some, particularly with larger sites; youâll find that as a site grows it will take progressively longer to build.
Choose Eleventy if youâre looking for a future-proofed SSG, where content is decoupled as much as possible from the SSG itself (and is therefore easier to extract, should you need to). Even the templating engines â and remember, you can mix and match between ten, within a single project â are by design as Eleventy-independent as possible. If build times are a big concern, Eleventy is likely to be the SSG for you. Add to that the widest flexibility for templating languages the Jamstack community has seen so far (including Liquid, for those particularly interested in transferring from Jekyll).
Whatever your choice, CloudCannon is here for you. Our Git-based CMS works seamlessly with both Jekyll and Eleventy (as well as Hugo, if Go is more your speed, and more speed is more your thing), letting you empower your content team with robust publishing workflows, and spend more time on the development work you enjoy.
Launch your website today
Give your content team full autonomy on your developer-approved tech stack with CloudCannon.
You might also like:
Understanding the difference between static, dynamic, and hybrid websites
David Large · 7 Nov 2024