Skip to main content

Hugo 0.169.0

Release Date: October 27, 2026

Hugo 0.169.0 shipped on October 27, 2026. The short version: this is a security build. Hugo now compiles against Go 1.27.3, which blocks trust in a small set of intermediate certificates. If your site fetches remote resources over HTTPS, upgrade.

Breaking: Certificate Trust Change

Go 1.27.3 removes trust from intermediate certificates tied to the eMudhra incident. Any Hugo feature that makes outbound HTTPS requests inherits the new trust store. That includes resources.GetRemote, which many themes use to pull fonts, JSON feeds, and remote images at build time.

The practical risk is a build that suddenly fails to fetch a URL it used to fetch. If a remote host chains to a distrusted intermediate, resources.GetRemote will error out. Hugo does not silently fall back. Check your build logs after upgrading.

Security Hardening in Templates

Hugo treats templates as trusted and content as untrusted. Two places were leaking content into unescaped HTML.

  • Menu entries from front matter. The pre and post values of menu entries defined in front matter are now HTML escaped. Menus defined in project configuration are unaffected. A new warning, warning-menu-pre-post-html-escaped, fires when markup gets escaped, so you can spot the affected entries.
  • emojify and plainify return types. Both now return string unless the input is template.HTML, in which case the result is also template.HTML. Previously they always returned template.HTML, which meant {{ .Title | emojify }} marked a potentially unsafe title as safe HTML. Pipe through safeHTML if you relied on the old behavior with trusted input.

Deprecation: Reserved Front Matter via .Params

Reserved front matter fields are still stored in .Params, and the content of .Params is unchanged for now. But lookups such as .Params.title, ByParam "title", and where .Pages "Params.title" are redirected to the corresponding Page method and logged as deprecated. This only applies when the field was not explicitly set in the params section of front matter.

The mapping is mechanical. .Params.date becomes .Date, .Params.title becomes .Title, .Params.description becomes .Description, and so on through slug, layout, weight, type, keywords, and lastmod. One entry is new rather than renamed: .Params.summary maps to .RawSummary.

Nothing breaks today. Themes that query Params for reserved fields will start emitting deprecation warnings in build output, and those warnings will grow into errors eventually. Grep your layouts now.

The plainify Rewrite

plainify was rebuilt to be more robust and faster. Same job, less HTML parsing overhead, fewer edge cases with malformed markup in summaries and excerpts. If you generate meta descriptions from .Summary | plainify across hundreds of pages, the build time difference is measurable.

Bug Fixes Worth Noting

  • Template change detection now works when an editor saves via temp file and rename, the standard atomic write. No more restarting the dev server because your editor did not touch the file in place.
  • Goldmark auto heading IDs fixed for headings whose link text starts with a bracket.
  • urls.JoinPath no longer panics on an empty slice.
  • js.Build works with browser-disabled, extensionless requires.
  • Site.Key works correctly when used in partialCached.
  • A build hang after too many page render errors was fixed.
  • Processed image keys are now stable across builds, which stops image cache thrash in CI.

Upgrade Notes

Run hugo version to confirm your binary, then upgrade through your usual channel. Homebrew users: brew upgrade hugo. Snap: snap refresh hugo. Docker: pull the new tag.

After upgrading, build once with hugo --gc --minify and read the warnings. The two new categories to expect are the menu escaping warning and the .Params deprecation notices. Both are informational in this release.

Other Versions

We use cookies for ads and analytics.