Hugo 0.171.0
Hugo 0.171.0 was tagged on November 30, 2026 and is the third release in three weeks for the static site generator. The headline addition is a new images.Meta filter that writes EXIF and XMP metadata into processed images, and the release notes pair it with a set of memory and build time refinements aimed at larger sites.
Overview
This release continues the pattern set by 0.170.0, which removed the extended edition and unified the binary. Version 0.171.0 does not touch that decision. Instead it adds one user-facing image capability, reworks parts of the cache layer, and changes the default behaviour of the embedded render hooks for every project.
New Features
- images.Meta filter. The filter writes copyright, creator, title, description, date, and GPS position as EXIF and XMP metadata to processed JPEG, PNG, WebP, TIFF, and AVIF images. Photography sites and documentation archives that previously ran a separate metadata tool can now stamp attribution during the image pipeline.
- Suffix-wide templates. Templates without an output format in the file name, such as
list.xml, now apply to all output formats that share that suffix. A custom Atom format and the built-in RSS format can therefore share one template instead of competing for the first one declared. - Alias warnings. The
--printPathWarningsflag now reports aliases that overwrite pages, which catches a quiet class of redirect mistakes.
Performance
Three changes target build cost. Highlighted code is now cached across sites in a multi-site setup, so the same snippet rendered for several languages is only highlighted once. Pages that contain tables no longer get their content rendered again for every output format, which removes a repeated pass during feeds and sitemaps. The dynamic cache also received new partition sizing and an eviction strategy built for memory-constrained builds, where large content sets previously pushed the cache into thrashing.
Behaviour Changes
- Render hook defaults. The embedded link and image render hooks now default to
fallbackfor all projects. The only way to disable them is an explicituseEmbedded = "never". Sites that relied on the embedded hooks being off should set that value before upgrading. - Special purpose templates. Sitemap, sitemap index, and
robots.txttemplates must now be selected by output format. A user-providedall.txtno longer rendersrobots.txt. - Hash signs in file names. A
#is now stripped from published file names. Some hosts, Netlify among them, reject such names outright. - strings.Truncate. The function now returns a
stringfor string input, which stops HTML escaping from appearing in plain text output formats. - Page sorting. Pages sharing the same language weight are now sorted by
Langas a tiebreaker.
Deprecations
hugo.IsExtended is deprecated and now always returns true, a direct consequence of the single-binary move in the previous release. Templates that branch on the extended build for LibSass or other features should drop the check entirely.
Security and Fixes
One fix in this release is worth flagging for anyone using roles to separate content. Resources with a role set in the file name, for example foo._role_member_.txt, inside a page bundle spanning multiple roles were published for all roles. The role in the file name now wins over the mount, closing the leak (#15627).
The remaining fixes cover a nil pointer in the page key when debug logging is enabled during rebuilds (#15674), FormatByteCount values below 1 GB, inconsistent ToC rendering in non-HTML output formats, a PostCSS fallback when the executable is missing, IPv6 hosts in BaseURL.WithPort, and time comparison by instant in collections.Intersect. Error messages for missing executables and for hugo deploy were also rewritten.
Upgrading
Install through your package manager or pull the standard archives. The main migration step is the render hook default: set renderHooks.{image,link}.useEmbedded = "never" if you were previously relying on those hooks being disabled. Review any robots.txt template in the project, since the output format selection rule changed.