Skip to main content

Hugo 0.170.1

Release Date: November 17, 2026

Hugo 0.170.1, published on November 17, 2026, exists to undo one thing. According to the release notes, the primary motivation is a performance regression introduced in v0.166.0, when the project improved the return keyword in partial templates. The fix arrives one day after Hugo 0.170.0 removed the extended edition, a much larger change that shipped on November 13.

The regression was narrow and specific: it affected sites that use return inside partial templates, and only larger sites noticed the slowdown. Sites that never touch the keyword were never exposed.

What Changed

Quoting the release notes directly: "The primary motivation for this release is a bug fix for a performance regression introduces in v0.166.0 where we improved the return keyword in partial templates."

  • Partial return errors. Template errors from partial return sentinels no longer carry file context, which is what restored the old fast path (#15604).
  • QR code colors. The images.QR function and the qr shortcode gained fgColor and bgColor options, so generated codes can follow a site palette (#15600).
  • Image metadata dependency. github.com/bep/imagemeta moved from v1.1.1 to v1.1.2.
  • Vimeo shortcode. Comment and argument handling were cleaned up, and deprecation errors in the test suite were addressed.

Why It Matters

Build time is the main reason people choose Hugo, so a regression in template execution is treated as urgent by the maintainers even when it is small. The fix is a deliberate trade: dropping file context from a specific class of template error buys back the optimization. Errors from partial returns will now be less localized in the output, and for most projects that is the right trade.

The QR color options are the only user-facing addition, and they land in a useful place. Teams that generate QR codes for tickets or documentation links can now match them to brand colors without post-processing the PNG in another tool.

Context for Upgraders

Anyone moving from 0.169.x should read the 0.170.0 notes as well. That release deleted the extended edition: there is one binary now, LibSass is gone, setting transpiler to libsass inside css.Sass returns an error, and Dart Sass must be installed wherever the site is built. It also made command-line flags override environment variables such as HUGO_BUILDDRAFTS, preserved directory casing in resources.Match, and rewrote strings.Truncate on top of an HTML scanner.

What's Next

The release carries no deprecations of its own and no migration steps. Update through your package manager, or pull the standard archives; the aliases published for the old hugo_extended_* files still work but should be replaced in CI scripts.

Other Versions

We use cookies for ads and analytics.