github gohugoio/hugo v0.171.0

2 hours ago

The notable new feature in this release is the images.Meta filter, which writes copyright, creator, title, description, date and GPS position as EXIF and XMP metadata to processed JPEG, PNG, WebP, TIFF and AVIF images. Other notable changes:

  • Better performance and memory usage in some setups: highlighted code is now cached across sites, pages with tables no longer get their content rendered again for every output format (e.g. RSS), and the dynamic cache has a new partition sizing and eviction strategy for memory-constrained builds.
  • Templates without an output format in the file name (e.g. list.xml) are now used for all output formats sharing that suffix (e.g. RSS and a custom Atom format), not just the first one.
  • The embedded link and image render hooks now default to fallback for all projects. Before, this depended on the language setup in a way that was hard to reason about.
  • The hash sign (#) is now stripped from published file names, as some hosts (e.g. Netlify) reject them.
  • strings.Truncate now returns a string for string input, which avoids HTML escaping in plain text output formats.
  • --printPathWarnings now detects aliases that overwrite pages.

Notes

  • hugo.IsExtended is deprecated and now always returns true.
  • The renderHooks.{image,link}.useEmbedded value auto is now an alias for fallback, which is the new default for all projects. If you relied on the embedded hooks being disabled, set useEmbedded = "never".
  • Special purpose templates (sitemap, sitemap index and robots.txt) must now be selected by output format; e.g. a user-provided all.txt no longer renders robots.txt.
  • Pages with the same language weight are now sorted by Lang as a tiebreaker.

Security

  • If you use roles to separate content (e.g. guests vs. members), resources with the role set in the file name (e.g. foo._role_member_.txt) in a page bundle spanning multiple roles were published for all roles. This is fixed in this release; the role set in the file name now wins over the mount (#15627).

Changes

Dependency Updates

Don't miss a new hugo release

NewReleases is sending notifications on new releases.