Hugo: static site generator in Go, unrivalled build speed

Hugo (July 2013) by Steve Francia: static site generator written in Go, builds in milliseconds for thousands of pages. Go templates, Markdown, shortcodes, asset pipeline. Alternative to Jekyll without Ruby dependencies.

Open SourceWeb HugoGoSteve FranciaStatic Site GeneratorJamstackOpen SourceWeb

Jekyll’s limit

Jekyll (2008, Tom Preston-Werner, GitHub cofounder) had democratised static site generators: content in Markdown, Liquid templates, conversion to static HTML, free hosting on GitHub Pages. But: Jekyll is Ruby, requires Bundler/Ruby environment, is slow on large sites (thousands of pages → minutes of build).

The release

Hugo 0.1 is published on 6 July 2013 by Steve Francia (spf13). Apache 2.0 licence. Written in Go, single binary, zero dependencies. Subsequently maintained primarily by Bjørn Erik Pedersen (bep).

Features

  • Extreme speed — 5000+ page builds in less than 3 seconds
  • Single binary — no runtime required (vs Ruby/Node/Python)
  • Content in Markdown — YAML/TOML/JSON frontmatter
  • Go templates — powerful text/template
  • Shortcodes — reusable macros within Markdown
  • Taxonomies — customisable tags, categories
  • Native multilingual — first-class i18n
  • Asset pipeline — SCSS, PostCSS, JS bundling, minification, fingerprinting
  • Live reload — dev server with hot reload
  • Image processing — resize, crop, filter with WebP/AVIF formats

Typical use cases

  • Personal and technical blogs
  • Documentation (Google Docsy theme, Hugo Book, Geekdoc)
  • Static portfolios and corporate sites
  • Changelogs and product sites
  • Landing pages with fast builds

Themes

Very rich community of themes:

  • Ananke, PaperMod, Hugo Academic
  • Docsy (Google, documentation)
  • Blowfish — modern for tech blogs

Competitors

The static site generator space is crowded:

  • Jekyll (2008, Ruby) — legacy, still GitHub Pages default
  • Hexo (2012, Node.js)
  • Gatsby (2015, React) — rich but slow
  • Next.js SSG — SSG + SSR hybrid
  • 11ty Eleventy (2018, Node.js) — minimal
  • Astro (2021) — islands architecture
  • Hugo — always the fastest of all

In the Italian context

Hugo is used by:

  • Italian developer tech blogs
  • Internal corporate documentation
  • Italian open source conference sites
  • GitHub Pages and Netlify presences
  • Italian CERT teams, PA agencies for secure static sites (zero backend)

The “Hugo + Netlify/Cloudflare Pages + Git” stack is one of the most economical and maintainable patterns for a medium-sized Italian corporate site.


References: Hugo 0.1 (6 July 2013). Steve Francia. Apache 2.0 licence. Written in Go. Single binary. Build speed ~1ms/page. Docsy (Google), Hugo Academic, PaperMod themes.

Need support? Under attack? Service Status
Need support? Under attack? Service Status