惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
IT之家
IT之家
V
V2EX
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
小众软件
小众软件
A
Arctic Wolf
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
G
GRAHAM CLULEY
罗磊的独立博客
T
Tor Project blog
C
Cisco Blogs
美团技术团队
博客园 - Franky
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
Cyberwarzone
Cyberwarzone
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
有赞技术团队
有赞技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Security Latest
Security Latest
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
Spread Privacy
Spread Privacy
J
Java Code Geeks
C
CERT Recently Published Vulnerability Notes
大猫的无限游戏
大猫的无限游戏
S
Securelist
The Cloudflare Blog
博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Project Zero
Project Zero

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Keep your content consistent with input validation Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack Understanding the difference between static, dynamic, and hybrid websites Looking for an alternative to Netlify CMS or Decap CMS? Designing components for your website editors: a CloudCannon case study Does my website look big in this? Six tips to lower your page weight Content is sacred — so own your revision history The eternal balancing act: load time vs. delay time Streamlined Headless Mode, Unified Configuration, and live data editing What is a headless CMS? Looking for a TinaCMS or Tina Cloud alternative? The ultimate guide to Hugo Sections Coming soon: Live config editing and data reloading Faster publishing workflows out now! Why information architecture matters for your website Website UX vs SEO: picking your battles Easily manage your multilingual Astro site in CloudCannon How you can optimize publishing workflows for your content team How you can optimize your CMS for SEO success How you can optimize your Content Editor for long-form articles How you can optimize your Visual Editor for page building Secure, swift, and stable: static sites for the financial sector Enhanced flexibility for teams with Custom Permissions Building static sites that scale The Inaugural 11ty International Symposium on Making Web Sites Real Good How to manage hundreds of connected websites with a Git-based headless CMS How we’re building CloudCannon for accessibility CloudCannon’s new editing improvements are here! Open Beta | New ways to collaborate on editing your websites Top 11 free Eleventy themes for 2024 Top 10 free Astro themes to use in 2024 Why choose a Git-based headless CMS over a monolithic DXP in 2024? Learning web development: a self-guided roadmap Partner Site of the Month: Blüthner Piano Centre, by Winteractive CloudCannon’s 2023 wrapup Let’s create a microblog with visual editing using Bookshop and Eleventy Update and visualize your branches with CloudCannon Projects What is a Git-based CMS and why you should use one CloudCannon secures SOC 2 certification The complete guide to growing your web development agency Automatically optimize your images with Eleventy Image and CloudCannon Share components and syndicate content with Site Mounting Partner Site of the Month: Cru Uncorked, by Ed Meehan New web component for responsive HTML tables Wrapping up HugoConf 2023 Partner Site of the Month: Van Dillen Antieke Bouwmaterialen, by Fulldev How to become a freelance web developer: a comprehensive guide Q3 2023: CloudCannon features and improvements 22 ways to deliver more value to your web development clients Partner Site of the Month: DC Gay Flag Football League, by Ed Cupaioli A new way to configure your CloudCannon sites CloudCannon — the official CMS partner of Eleventy Full CloudCannon support for Nuxt static sites Partner Site of the Month: Stadium Bike, by Insight Creative, Inc. HugoConf 2023, brought to you by CloudCannon DAM Support for Cloudflare R2 and DigitalOcean Spaces Eleventy (11ty) vs. Gatsby in 2023 – which SSG is best for you? How CloudCannon’s live editing works with Astro and Bookshop Partner Site of the Month: Fiducian, by Croissant & Baguette Eleventy (11ty) vs. Astro How to customize CloudCannon’s Client Sharing interface Let anyone, anywhere, edit your CloudCannon sites Top 23 free Astro themes for building out-of-this-world static sites in 2023 How Jampack optimizes our Eleventy website and improves performance Astro vs. Next.js CloudCannon.com is now built with Eleventy! Out-of-this-world support for all Astro users Introducing the CloudCannon Partner Program Full CloudCannon support for Gatsby Top 10 Free SvelteKit Themes for Building Lighting-Fast Static Sites in 2023 Enhanced CloudCannon support for Next.js users Upcoming CloudCannon Interface improvements (Open Beta)
Jekyll vs. Hugo - choosing the right tool for the job
2021-03-04 · via CloudCannon Blog

In the Jamstack world, new static site generators are constantly released. But actively developed, battle-tested solutions are also great options.

Jekyll and Hugo are such tried-and-true solutions.

They are both considered traditional SSGs, in the sense that they are not tied to a specific framework; they focus on turning content into websites and for everything else, they’re quite flexible.

Let’s explore how they differ.

What is Jekyll? Direct link to this section

Jekyll is a Ruby-based static site generator that was initially released by Tom Preston-Werner in 2008. It is rightfully praised as the SSG that popularized static site generation in general and it did that in a world which was, even more than today, dominated by server-side rendering. Its growth has not been as fast as a few other, newer SSGs in recent years, but it remains a very popular choice.

Jekyll was created to simplify website hosting and infrastructure management, mostly by getting rid of it. It replaced the need for a database with files that can be put under version control. These may seem like the most basic precepts of Jamstack, because they are, but remember that the term “Jamstack” itself was born years after Jekyll. It truly was a small revolution back in 2008.

Besides its revolutionary ideas, Jekyll was made extremely popular by GitHub Pages. The creator of Jekyll happens to be one of GitHub’s co-founders and from version 0.12.1 to 3.6.0 the lead developer was Parker Moore, a software engineer at GitHub. Having GitHub’s seal of approval is always helpful for a software project. GitHub Pages certainly gave a huge boost to Jekyll and the concept of static site generation in general.

Right from the beginning, Jekyll was presented as a blogging solution. Its tagline reads: “Jekyll is a blog-aware static site generator in Ruby”.

It can be used for more than simple blogs, though. Extendibility is at the heart of Jekyll’s design and that is achieved through a vast ecosystem of plugins.

What is Hugo? Direct link to this section

Hugo is a static site generator built with Go. It was first released in 2013 by Steve Francia. While he’s not a billionaire founder like Tom, Steve has an extremely impressive background, with involvement in a lot of market-leading projects and innovations. He currently works as a product and strategy lead for the Go language at Google. Since version 0.14, Hugo has been maintained by Bjørn Erik Pedersen, and most of the commits can be attributed to this one person. Hugo is not tied to one humongous company like Jekyll, but it is widely supported by virtually all hosts, CMSs and other products with a Jamstack focus.

Hugo was not as revolutionary as Jekyll when it came out. You could say it stands on the shoulders of a giant (Jekyll). But, from the very beginning, Hugo has set itself apart by being fast. More precisely, it has set itself apart by being much faster than Jekyll. And after all these years, its incredible speed remains one of its main strengths when compared to other SSGs.

"Hugo has had 'fast' in its slogan from day one, so we have to really care about it." - Bjørn Erik Pedersen

Hugo also has a focus on simplicity and flexibility. This philosophy is felt right at the installation step; Hugo is distributed as a single binary. No need to run npm install or gem install for every project - unless you want to add more dependencies yourself, of course. Simplicity also means lots of functionalities built in: things like i18n, image optimization, pre-made templates … most things needed by modern websites, really. A large array of plugins to choose from is handy, but sometimes out-of-the-box functionality is even handier.

Liquid vs. Go templating Direct link to this section

Jekyll uses Liquid as its templating language. Hugo uses Go templating. Most people seem to agree that it is a little bit easier to learn Jekyll’s syntax than Hugo’s.

To illustrate the point, here is how to list the last 3 blog posts with Hugo:


{{ range ( where .Site.RegularPages "Type" "posts" | first 3 ) }}

<--! Show the posts -->

{{ end }}

The same thing in Jekyll looks like this:


{% for post in site.posts | limit:3 %}

  {% comment %} Show the posts {% endcomment %}

{% endfor %}

Here’s another example for a simple if statement:

Hugo:


{{ if (and (eq .Type "blog") (isset .Params "hascaniuse")) }}

 <--! Do something if condition is true -->

{{ end }}

Jekyll:


{% if page.is_post and page.hascaniuse %}

 {% comment %}
  Do something if condition is true
 {% endcomment %}

{% endif %}

Even without any Ruby experience, the conditional statement seems rather clear in the Jekyll example.

Popularity contest Direct link to this section

Despite its quirky syntax, a couple of metrics seem to indicate that Hugo’s popularity is growing at a faster pace than Jekyll’s.

  • When searching for “Hugo to Jekyll” in Google, results are all about people switching from Jekyll to Hugo. Not the other way around. Hugo even has instructions for a smooth migration from Jekyll to Hugo.
  • When comparing GitHub stars over time, Hugo keeps increasing its distance with Jekyll (GitHub star history)
  • Hugo’s official Twitter account has more followers than Jekyll’s

But both Jekyll and Hugo are slowly growing according to builtwith:

A few examples of websites built with each framework:

Jekyll:

Hugo:

Jekyll vs. Hugo, side by side Direct link to this section

ComparisonJekyllHugo
First release20082013
Built withRubyGo
Templating engineLiquidGo Templates
PluginsYes, via Ruby GemsNo, but still extendable with a bit more work
GitHub stars42K+49K+
ThemesYesYes
Open source licenceMITApache 2.0
Installation requirementsRuby must be installed.None, Hugo is a single binary.
Asset pipelineSASS and CoffeeScript out of the box, plugins for almost everything else.SASS, JS, images, bundling… Hugo does a LOT out of the box. But no plugin ecosystem.
Build times“Fast-ish” since version 4.0Fastest in class
Multilingual and i18nThrough pluginsBuilt in
ShortcodesYesYes
Easy WordPress et al. converterYes: Jekyll converterYes: Hugo converter
Learning curveGentle, especially if you have Ruby experience.Less gentle. Go templating is subjectively harder.
Supported content typesMarkdown, HTML + more through pluginsMarkdown, AsciiDoc, RST, HTML
Support communitiesJekyll Talk GitterHugo Discourse
CLI toolYesYes
Hot reloading dev serverYesYes
Twitter accountsJekyll TwitterHugo Twitter
GitHub reposJekyll GitHubHugo GitHub

Why use Hugo? Direct link to this section

Fast build times. Although Jekyll got better in its last release, Hugo remains the reigning champion in all benchmark tests (not just when compared to Jekyll, but when compared to SSGs at large). The bigger the sites you work on, the bigger a deal this is. Besides the developer experience, many cloud hosts charge for build time.

A growing community. Even though it’s a younger project, Hugo has caught up with Jekyll in terms of popularity and the trend shows no sign of reversal.

A single binary. Having access to a plugin ecosystem is nice, but not having to manage software decay and/or breaking dependencies is also nice. Hugo’s installation process is also notoriously easy.

Extendable if needed. Even though Hugo doesn’t have its own ecosystem of plugins, it can be extended with build tools, JS frameworks, NPM packages, CSS libraries… it really is versatile.

Things to watch out for when choosing Hugo Direct link to this section

The learning curve is a bit steeper. This statement is subjective, of course, but it’s a comment that many people make about Hugo. Unless you’re already comfortable with the Go language, it will probably take a bit of time before feeling comfortable with Go templates’ syntax and the general structure of a Hugo project. But you can always follow our helpful Hugo tutorial!

Hugo is extendable… but not as much as Jekyll. Hugo can be extended with many tools, but so does Jekyll and it can be extended with plugins made specifically for Jekyll.

Why use Jekyll? Direct link to this section

If you already have expertise in the Ruby ecosystem, you will feel right at home. Even without much Ruby experience, Jekyll is one of the easiest SSGs to learn. (Try our Jekyll tutorial if you're getting started.) Conventions tend to be clearer with Jekyll. For instance, all blog posts follow a clear naming convention: “year-month-day-title”.

Easy hosting on GitHub Pages. (Although version 4.0 is still not supported to the community’s disbelief…)

Even more extendable. Jekyll does less than Hugo out of the box, but it’s easily extendable with its vast library of plugins made specifically for Jekyll. This can make Jekyll more flexible, too. For instance, Hugo does i18n out of the box, but Jekyll has many plugins to achieve that goal and you get to choose which one you prefer.

A large and older community. Since Jekyll is the oldest modern static site generator, chances are that many people already have had the problems you’ll stumble into and posted their solution online.

Many active contributors. Lots of people care about the project and it shows no sign of being deprecated any time soon.

Things to watch out for when choosing Jekyll Direct link to this section

The negative aspect of Jekyll that comes up over and over again is its build times. The core team finally decided to make build times a priority since version 4.0, but it’s very unlikely that it will ever catch up with Hugo. Hugo is just light-years ahead on that specific point.

There’s a bit more work involved for the initial setup of Jekyll too, as it requires a proper Ruby environment. Jekyll itself is distributed as a Ruby Gem.

It’s not the rising star it once was. While new projects are still created with Jekyll, it seems like Jekyll already brought the revolutionary ideas it had to bring to web development.

Conclusion - they’re both great options Direct link to this section

There are not a lot of things that Hugo can do but Jekyll cannot and vice versa.

For some sites with thousands of pages, Hugo is a must because of its build speed. For others, Jekyll can be a must because of a few plugins with specific functionalities not found in Hugo. But for the majority of us, it comes down to personal preference.

So, you can’t really go wrong with either Jekyll or Hugo. Again, they are tried-and-true solutions.

Whatever you end up choosing, CloudCannon can help make the experience even smoother. We even have a range of themes and templates available for both Hugo and Jekyll, all configured for editing on CloudCannon.

How CloudCannon makes working with both Jekyll and Hugo easier Direct link to this section

CloudCannon aims to make it as easy as possible to get your site live and shared with clients and team members. Regardless of whether you’re using Jekyll or Hugo, the process for connecting your site and going live is the same. CloudCannon is a Git-based CMS, which means you can simply connect your repository through your favorite Git provider, provide any build configuration details, and CloudCannon will take care of the rest.

Once your site is connected, you’ll instantly receive a testing domain and easy-to-use CMS for managing content and sharing. Importantly, all the conventions and magic of Jekyll and Hugo are recognized and available to configure in the editor. And whenever changes are made by users there, or remotely in your repository, changes will be synced to make sure that everyone stays up to date.

Which static site generator you choose doesn’t matter. Pick the right one for your team to unlock the potential of your site, and benefit from first-class speed and easiest sharing with CloudCannon.