chore(deps): update dependency hugo to v0.170.1 #67

Open
renovate-bot wants to merge 1 commit from renovate/hugo-0.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
hugo uses-with minor 0.168.0 → 0.170.1

Release Notes

gohugoio/hugo (hugo)

v0.170.1

Compare Source

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. Note that this was not an issue if you don't use this keyword and also only an issue for bigger sites.

What's Changed

v0.170.0

Compare Source

The big change in this release is that the extended edition of Hugo is gone. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had.

Notes
  • Setting transpiler to libsass in css.Sass now returns an error. Dart Sass is now the default and the only transpiler, so you need to install it if you use Sass.
  • We no longer publish hugo_extended_* archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g. hugo_extended_<version>_linux-amd64.tar.gz, hugo_extended_<version>_Linux-64bit.tar.gz, the linux-amd64.deb, linux-arm64.tar.gz and windows-amd64.zip), but you should update your scripts to use the standard archives. The extended_withdeploy builds are also removed. See Installation.
  • hugo.IsExtended now always returns false, and the module config setting hugoVersion.extended is deprecated and has no effect.
  • Command-line flags (e.g. --buildDrafts) now override OS environment variables (e.g. HUGO_BUILDDRAFTS). This also fixes HUGO_ENVIRONMENT=qa hugo build -e staging loading the staging config but reporting qa in hugo.Environment.
  • strings.Truncate has been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with > and raw text elements such as script correctly, and it's faster and allocates less. On a curious note, the old version was implemented by Mathias Biilmann, the Netlify CEO.
  • time.Time values now keep their named time zone, and eq, ne, in and uniq compare time.Time values by instant.
  • resources.Match and friends now preserve the directory casing in the matched paths, so e.g. resources.Match "gallery/Travel/Iceland/*" now works on case-sensitive file systems.
  • Syncing of static files is much faster for big unchanged files, as we now skip the content check for files with the same size and modification time.
  • Several fixes and hardening of the WASM based image codecs (AVIF crash at encoderSpeed 6 and lower, recovering from broken WASM instances in the server).
Security
Hugo
  • Passthrough content is now HTML escaped when no passthrough render hook is set, unless markup.goldmark.renderer.unsafe is enabled. Before this, e.g. \(<img src=x onerror=alert(1)>\) in a content file emitted raw HTML.
  • The wrapperClass option, settable from the highlight shortcode and transform.Highlight, is now escaped.
  • Vendored module paths are now restricted to the _vendor directory (symlinks pointing outside are rejected).

Thanks to @​R0X4R for finding and reporting the last two issues.

Go

This release is built with Go 1.27.4, which includes 12 security fixes. The one most relevant for Hugo is a crash in the net/http HTTP/1 server (used by hugo server) caused by a race in MaxBytesReader. The other 11 are in the cmd/go toolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies.

Dependencies
  • golang.org/x/net v0.62.0 fixes two issues in the html package: quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements for hugo_stats.json and in the AsciiDoc integration.
  • github.com/go-jose/go-jose/v4 v4.1.6 (indirect dependency) contains a number of security fixes, among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder.
Changes
Dependency Updates
Documentation

v0.169.0

Compare Source

The main motivation behind this release is to get out a build with Go 1.27.3, which blocks trust in a small set of intermediate certificates due to specific security concerns around their operation. See the eMudhra incident for more information. This affects Hugo features that fetch remote resources over HTTPS, e.g. resources.GetRemote.

This release also contains some security hardening of the template functions and menu entries that can render content as HTML (see below), a deprecation of looking up reserved front matter fields via .Params (also below), a faster and more robust plainify, and a set of bug fixes.

Security notes

Templates are trusted in Hugo, but content (including front matter) is not necessarily. This release tightens a few places where values from content could end up rendered as unescaped HTML:

  • pre and post values in menu entries defined in front matter are now HTML escaped, unless text/html is allowed in security.allowContent, which already marks HTML in /content as trusted. A warning (warning-menu-pre-post-html-escaped) is logged when a value containing HTML markup is escaped. Menu entries defined in the project configuration are not affected. f63482b
  • emojify and plainify now return a string unless the input is template.HTML, in which case the result is also template.HTML. Previously both always returned template.HTML, so e.g. {{ .Title | emojify }} would mark a potentially unsafe title as safe HTML. If you relied on the old behavior with trusted input, pipe the result through safeHTML. Thanks to @​Reload3d for reporting this. #​15452
Deprecations

Reserved front matter fields such as title, date and summary are currently also stored in .Params. Lookups such as .Params.title (and ByParam "title", where .Pages "Params.title" ... etc.) are now redirected to the corresponding Page method and logged as deprecated, unless the field was set in the params section of front matter. The content of .Params is unchanged for now. 53e1fef

Deprecated Use instead
.Params.date .Date
.Params.description .Description
.Params.draft .Draft
.Params.expirydate .ExpiryDate
.Params.keywords .Keywords
.Params.lastmod .Lastmod
.Params.layout .Layout
.Params.linktitle .LinkTitle
.Params.publishdate .PublishDate
.Params.slug .Slug
.Params.summary .RawSummary (new)
.Params.title .Title
.Params.translationkey .TranslationKey
.Params.type .Type
.Params.weight .Weight
Bug fixes
Improvements
Dependency Updates

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [hugo](https://github.com/gohugoio/hugo) | uses-with | minor | `0.168.0` → `0.170.1` | --- ### Release Notes <details> <summary>gohugoio/hugo (hugo)</summary> ### [`v0.170.1`](https://github.com/gohugoio/hugo/releases/tag/v0.170.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.170.0...v0.170.1) The primary motivation for this release is a bug fix for a performance regression introduces in [v0.166.0](https://github.com/gohugoio/hugo/releases/tag/v0.166.0) where we improved the `return` keyword in `partial` templates. Note that this was not an issue if you don't use this keyword and also only an issue for bigger sites. ##### What's Changed - deps: Upgrade github.com/bep/imagemeta v1.1.1 => v1.1.2 [`e6d7bcb`](https://github.com/gohugoio/hugo/commit/e6d7bcba) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Don't add file context to partial return sentinel errors [`5f34065`](https://github.com/gohugoio/hugo/commit/5f34065b) [@&#8203;bep](https://github.com/bep) [#&#8203;15604](https://github.com/gohugoio/hugo/issues/15604) - images: Add fgColor and bgColor options to images.QR and the qr shortcode [`93be9f1`](https://github.com/gohugoio/hugo/commit/93be9f1f) [@&#8203;bep](https://github.com/bep) [#&#8203;15600](https://github.com/gohugoio/hugo/issues/15600) - tpl/tplimpl: Cleanup vimeo shortcode comments and arg logic [`6c6b1ee`](https://github.com/gohugoio/hugo/commit/6c6b1eea) [@&#8203;jmooring](https://github.com/jmooring) - Delete hugolib/integrationtest_builder_test.go [`b8765e1`](https://github.com/gohugoio/hugo/commit/b8765e1f) [@&#8203;bep](https://github.com/bep) - tests: Address deprecation errors [`7a15e87`](https://github.com/gohugoio/hugo/commit/7a15e872) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.170.0`](https://github.com/gohugoio/hugo/releases/tag/v0.170.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.169.0...v0.170.0) The big change in this release is that **the *extended* edition of Hugo is gone**. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had. ##### Notes - Setting `transpiler` to `libsass` in [`css.Sass`](https://gohugo.io/functions/css/sass/) now returns an error. [Dart Sass](https://gohugo.io/functions/css/sass/#dart-sass) is now the default and the only transpiler, so you need to [install it](https://gohugo.io/functions/css/sass/#installation-overview) if you use Sass. - We no longer publish `hugo_extended_*` archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g. `hugo_extended_<version>_linux-amd64.tar.gz`, `hugo_extended_<version>_Linux-64bit.tar.gz`, the `linux-amd64.deb`, `linux-arm64.tar.gz` and `windows-amd64.zip`), but you should update your scripts to use the standard archives. The `extended_withdeploy` builds are also removed. See [Installation](https://gohugo.io/installation/). - [`hugo.IsExtended`](https://gohugo.io/functions/hugo/isextended/) now always returns `false`, and the module config setting `hugoVersion.extended` is deprecated and has no effect. - Command-line flags (e.g. `--buildDrafts`) now override OS [environment variables](https://gohugo.io/configuration/introduction/#environment-variables) (e.g. `HUGO_BUILDDRAFTS`). This also fixes `HUGO_ENVIRONMENT=qa hugo build -e staging` loading the `staging` config but reporting `qa` in `hugo.Environment`. - [`strings.Truncate`](https://gohugo.io/functions/strings/truncate/) has been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with `>` and raw text elements such as `script` correctly, and it's faster and allocates less. On a curious note, the old version was implemented by [Mathias Biilmann](https://github.com/biilmann), the Netlify CEO. - `time.Time` values now keep their named time zone, and [`eq`](https://gohugo.io/functions/compare/eq/), `ne`, `in` and `uniq` compare `time.Time` values by instant. - [`resources.Match`](https://gohugo.io/functions/resources/match/) and friends now preserve the directory casing in the matched paths, so e.g. `resources.Match "gallery/Travel/Iceland/*"` now works on case-sensitive file systems. - Syncing of static files is much faster for big unchanged files, as we now skip the content check for files with the same size and modification time. - Several fixes and hardening of the WASM based image codecs (AVIF crash at `encoderSpeed` 6 and lower, recovering from broken WASM instances in the server). ##### Security ##### Hugo - [Passthrough](https://gohugo.io/configuration/markup/#passthrough) content is now HTML escaped when no passthrough render hook is set, unless `markup.goldmark.renderer.unsafe` is enabled. Before this, e.g. `\(<img src=x onerror=alert(1)>\)` in a content file emitted raw HTML. - The `wrapperClass` option, settable from the [`highlight`](https://gohugo.io/shortcodes/highlight/) shortcode and [`transform.Highlight`](https://gohugo.io/functions/transform/highlight/), is now escaped. - [Vendored](https://gohugo.io/hugo-modules/use-modules/#vendor) module paths are now restricted to the `_vendor` directory (symlinks pointing outside are rejected). Thanks to [@&#8203;R0X4R](https://github.com/R0X4R) for finding and reporting the last two issues. ##### Go This release is built with Go 1.27.4, which [includes 12 security fixes](https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ). The one most relevant for Hugo is a crash in the `net/http` HTTP/1 server (used by `hugo server`) caused by a race in `MaxBytesReader`. The other 11 are in the `cmd/go` toolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies. ##### Dependencies - `golang.org/x/net` v0.62.0 [fixes two issues in the `html` package](https://seclists.org/oss-sec/2026/q4/407): quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements for `hugo_stats.json` and in the AsciiDoc integration. - `github.com/go-jose/go-jose/v4` v4.1.6 (indirect dependency) contains a number of [security fixes](https://github.com/go-jose/go-jose/releases), among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder. ##### Changes - Remove libsass and the extended build tag [`c2f9cb8`](https://github.com/gohugoio/hugo/commit/c2f9cb82) [@&#8203;bep](https://github.com/bep) [#&#8203;15405](https://github.com/gohugoio/hugo/issues/15405) - Remove the extended build from the release [`0b66ebd`](https://github.com/gohugoio/hugo/commit/0b66ebd4) [@&#8203;bep](https://github.com/bep) [#&#8203;15502](https://github.com/gohugoio/hugo/issues/15502) - Fix typo in AGENTS.md [`588241b`](https://github.com/gohugoio/hugo/commit/588241bf) [@&#8203;pei711](https://github.com/pei711) - tpl/collections: Fix sort when some items lack the sort key [`a8a8e97`](https://github.com/gohugoio/hugo/commit/a8a8e978) [@&#8203;bep](https://github.com/bep) [#&#8203;15523](https://github.com/gohugoio/hugo/issues/15523) - warpc, commands: Fix Close of image dispatchers, recover in fast render [`3c2f52d`](https://github.com/gohugoio/hugo/commit/3c2f52d4) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - warpc: Fix AVIF encode crashing at encoderSpeed 6 and lower [`4742565`](https://github.com/gohugoio/hugo/commit/47425654) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - Fix misc layout lookup issues [`f3875ec`](https://github.com/gohugoio/hugo/commit/f3875ec3) [@&#8203;bep](https://github.com/bep) [#&#8203;15538](https://github.com/gohugoio/hugo/issues/15538) [#&#8203;15540](https://github.com/gohugoio/hugo/issues/15540) - tpl/collections: Fix merge of maps with concrete element types [`b76fde2`](https://github.com/gohugoio/hugo/commit/b76fde2f) [@&#8203;bep](https://github.com/bep) [#&#8203;15499](https://github.com/gohugoio/hugo/issues/15499) - tpl/tplimpl: Fix shortcode layout lookup in non-default output formats [`87e6e14`](https://github.com/gohugoio/hugo/commit/87e6e14c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15536](https://github.com/gohugoio/hugo/issues/15536) - langs/i18n: Fix project translations losing to module translations [`fa5a3d4`](https://github.com/gohugoio/hugo/commit/fa5a3d48) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15518](https://github.com/gohugoio/hugo/issues/15518) - Adjust Exif test to fix now failing deprecation tests [`471d0fb`](https://github.com/gohugoio/hugo/commit/471d0fb3) [@&#8203;bep](https://github.com/bep) - markup/goldmark: Escape passthrough content when no render hook is set [`e2f66a2`](https://github.com/gohugoio/hugo/commit/e2f66a23) [@&#8203;raghu45345](https://github.com/raghu45345) - tpl: Compare time.Time values by instant in eq, ne, in and uniq [`3519196`](https://github.com/gohugoio/hugo/commit/3519196b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15577](https://github.com/gohugoio/hugo/issues/15577) - Skip content check for static files with the same size and modification time [`afb2d9a`](https://github.com/gohugoio/hugo/commit/afb2d9ac) [@&#8203;bep](https://github.com/bep) [#&#8203;15572](https://github.com/gohugoio/hugo/issues/15572) - commands: Rebuild assets also mounted as static [`b755c9d`](https://github.com/gohugoio/hugo/commit/b755c9d5) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;15567](https://github.com/gohugoio/hugo/issues/15567) - hugolib: Keep npm installs in their test directory [`2056ed6`](https://github.com/gohugoio/hugo/commit/2056ed69) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;15568](https://github.com/gohugoio/hugo/issues/15568) - Upgrade to Go 1.27.4 [`bca2cec`](https://github.com/gohugoio/hugo/commit/bca2cec8) [@&#8203;bep](https://github.com/bep) - common/htime: Preserve location of time.Time values [`5922421`](https://github.com/gohugoio/hugo/commit/59224216) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8895](https://github.com/gohugoio/hugo/issues/8895) [#&#8203;15565](https://github.com/gohugoio/hugo/issues/15565) - markup/highlight: Escape wrapperClass [`bdde5aa`](https://github.com/gohugoio/hugo/commit/bdde5aa5) [@&#8203;bep](https://github.com/bep) - modules: Restrict vendor module paths to the \_vendor directory [`d41a8a1`](https://github.com/gohugoio/hugo/commit/d41a8a19) [@&#8203;bep](https://github.com/bep) - hugofs: Preserve directory casing in resource matches [`5b44cfc`](https://github.com/gohugoio/hugo/commit/5b44cfce) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;7686](https://github.com/gohugoio/hugo/issues/7686) [#&#8203;10112](https://github.com/gohugoio/hugo/issues/10112) - config: Make command-line flags override OS environment variables [`d5ba1aa`](https://github.com/gohugoio/hugo/commit/d5ba1aaa) [@&#8203;bep](https://github.com/bep) [#&#8203;15549](https://github.com/gohugoio/hugo/issues/15549) [#&#8203;15550](https://github.com/gohugoio/hugo/issues/15550) - tpl/resources: Accept \[]any of resources in Concat [`e6a470c`](https://github.com/gohugoio/hugo/commit/e6a470cb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15546](https://github.com/gohugoio/hugo/issues/15546) - warpc: Keep function names in WASM binaries, set WebP stack size [`1a014e5`](https://github.com/gohugoio/hugo/commit/1a014e53) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - warpc, commands: Recover from broken WASM instances in the server [`5086d5f`](https://github.com/gohugoio/hugo/commit/5086d5fc) [@&#8203;bep](https://github.com/bep) [#&#8203;15522](https://github.com/gohugoio/hugo/issues/15522) - resources: Resolve remote media type from Hugo's media types [`3a1985b`](https://github.com/gohugoio/hugo/commit/3a1985b1) [@&#8203;AnaTejeda1](https://github.com/AnaTejeda1) [#&#8203;11601](https://github.com/gohugoio/hugo/issues/11601) - langs/i18n: Add failing test for project translation precedence [`2b0e1e1`](https://github.com/gohugoio/hugo/commit/2b0e1e1e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15518](https://github.com/gohugoio/hugo/issues/15518) - ci: Upgrade setup-ruby and Ruby [`185a609`](https://github.com/gohugoio/hugo/commit/185a609e) [@&#8203;jmooring](https://github.com/jmooring) - tpl/strings: Rewrite truncate using the hhtml scanner [`6b0c89c`](https://github.com/gohugoio/hugo/commit/6b0c89c3) [@&#8203;bep](https://github.com/bep) [#&#8203;15505](https://github.com/gohugoio/hugo/issues/15505) [#&#8203;15509](https://github.com/gohugoio/hugo/issues/15509) ##### Dependency Updates - build(deps): bump golang.org/x/image from 0.47.0 to 0.48.0 [`29bcc86`](https://github.com/gohugoio/hugo/commit/29bcc86d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.43.0 to 0.44.0 [`4f8354e`](https://github.com/gohugoio/hugo/commit/4f8354eb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0 [`6aebad4`](https://github.com/gohugoio/hugo/commit/6aebad49) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.152.0 to 0.153.0 [`8846854`](https://github.com/gohugoio/hugo/commit/88468544) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bits-and-blooms/bitset [`0586add`](https://github.com/gohugoio/hugo/commit/0586add2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.24 to 2.24.25 [`45dfa4e`](https://github.com/gohugoio/hugo/commit/45dfa4e8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.8.6 to 1.8.7 [`d2010fc`](https://github.com/gohugoio/hugo/commit/d2010fcc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.5.0 => v0.6.0 [`2d6cf3a`](https://github.com/gohugoio/hugo/commit/2d6cf3a8) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/bep/imagemeta v1.1.0 => v1.1.1 [`b6fa2fe`](https://github.com/gohugoio/hugo/commit/b6fa2fe5) [@&#8203;bep](https://github.com/bep) - build(deps): bump golang.org/x/net from 0.61.0 to 0.62.0 [`fe34313`](https://github.com/gohugoio/hugo/commit/fe34313e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.22 to 2.24.24 [`7ff95e0`](https://github.com/gohugoio/hugo/commit/7ff95e04) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gobwas/glob from 1.0.0 to 1.1.0 [`98ab2ff`](https://github.com/gohugoio/hugo/commit/98ab2ff7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 [`a1668da`](https://github.com/gohugoio/hugo/commit/a1668da3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update README.md [`8502b60`](https://github.com/gohugoio/hugo/commit/8502b600) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15512](https://github.com/gohugoio/hugo/issues/15512) ### [`v0.169.0`](https://github.com/gohugoio/hugo/releases/tag/v0.169.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.168.0...v0.169.0) The main motivation behind this release is to get out a build with [Go 1.27.3](https://github.com/golang/go/issues?q=milestone%3AGo1.27.3+label%3ACherryPickApproved), which blocks trust in a small set of intermediate certificates due to specific security concerns around their operation. See the [eMudhra incident](https://go.dev/blog/emudhra-incident) for more information. This affects Hugo features that fetch remote resources over HTTPS, e.g. `resources.GetRemote`. This release also contains some security hardening of the template functions and menu entries that can render content as HTML (see below), a deprecation of looking up reserved front matter fields via `.Params` (also below), a faster and more robust `plainify`, and a set of bug fixes. ##### Security notes Templates are trusted in Hugo, but content (including front matter) is not necessarily. This release tightens a few places where values from content could end up rendered as unescaped HTML: - `pre` and `post` values in menu entries defined in **front matter** are now HTML escaped, unless `text/html` is allowed in [`security.allowContent`](https://gohugo.io/configuration/security/), which already marks HTML in `/content` as trusted. A warning (`warning-menu-pre-post-html-escaped`) is logged when a value containing HTML markup is escaped. Menu entries defined in the project configuration are not affected. [`f63482b`](https://github.com/gohugoio/hugo/commit/f63482bf) - `emojify` and `plainify` now return a `string` unless the input is `template.HTML`, in which case the result is also `template.HTML`. Previously both always returned `template.HTML`, so e.g. `{{ .Title | emojify }}` would mark a potentially unsafe title as safe HTML. If you relied on the old behavior with trusted input, pipe the result through `safeHTML`. Thanks to [@&#8203;Reload3d](https://github.com/Reload3d) for reporting this. [#&#8203;15452](https://github.com/gohugoio/hugo/issues/15452) ##### Deprecations Reserved front matter fields such as `title`, `date` and `summary` are currently also stored in `.Params`. Lookups such as `.Params.title` (and `ByParam "title"`, `where .Pages "Params.title" ...` etc.) are now redirected to the corresponding `Page` method and logged as deprecated, unless the field was set in the `params` section of front matter. The content of `.Params` is unchanged for now. [`53e1fef`](https://github.com/gohugoio/hugo/commit/53e1fef9) | Deprecated | Use instead | | ------------------------ | ------------------- | | `.Params.date` | `.Date` | | `.Params.description` | `.Description` | | `.Params.draft` | `.Draft` | | `.Params.expirydate` | `.ExpiryDate` | | `.Params.keywords` | `.Keywords` | | `.Params.lastmod` | `.Lastmod` | | `.Params.layout` | `.Layout` | | `.Params.linktitle` | `.LinkTitle` | | `.Params.publishdate` | `.PublishDate` | | `.Params.slug` | `.Slug` | | `.Params.summary` | `.RawSummary` (new) | | `.Params.title` | `.Title` | | `.Params.translationkey` | `.TranslationKey` | | `.Params.type` | `.Type` | | `.Params.weight` | `.Weight` | ##### Bug fixes - hugolib: Fix template change detection when saving via temp file and rename [`46e51f3`](https://github.com/gohugoio/hugo/commit/46e51f30) [@&#8203;bep](https://github.com/bep) [#&#8203;15484](https://github.com/gohugoio/hugo/issues/15484) - markup/goldmark: Fix auto heading ID when link text starts with a bracket [`c22158c`](https://github.com/gohugoio/hugo/commit/c22158c1) [@&#8203;chanellebingham](https://github.com/chanellebingham) [#&#8203;15472](https://github.com/gohugoio/hugo/issues/15472) - urls: Fix JoinPath panic with empty slice [`ce5d232`](https://github.com/gohugoio/hugo/commit/ce5d232b) [@&#8203;Ferdinand-MZ](https://github.com/Ferdinand-MZ) [#&#8203;15473](https://github.com/gohugoio/hugo/issues/15473) - js: Fix js.Build with browser-disabled extensionless requires [`2efee51`](https://github.com/gohugoio/hugo/commit/2efee511) [@&#8203;bep](https://github.com/bep) [#&#8203;15481](https://github.com/gohugoio/hugo/issues/15481) - Fix Site.Key used in e.g. partialCached [`b86e0ca`](https://github.com/gohugoio/hugo/commit/b86e0caa) [@&#8203;bep](https://github.com/bep) [#&#8203;15466](https://github.com/gohugoio/hugo/issues/15466) - ci: Fix Windows running out of disk space and simplify test runs [`77230eb`](https://github.com/gohugoio/hugo/commit/77230eba) [@&#8203;bep](https://github.com/bep) - hugolib: Fix build hang after too many page render errors [`85fb23f`](https://github.com/gohugoio/hugo/commit/85fb23f1) [@&#8203;bep](https://github.com/bep) [#&#8203;15449](https://github.com/gohugoio/hugo/issues/15449) - tpl/cast: Fix nil pointer panic in hugo gen docshelper [`8df3180`](https://github.com/gohugoio/hugo/commit/8df31809) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15444](https://github.com/gohugoio/hugo/issues/15444) ##### Improvements - Redirect .Params.title etc. to .Title etc. and deprecate it [`53e1fef`](https://github.com/gohugoio/hugo/commit/53e1fef9) [@&#8203;bep](https://github.com/bep) - ci: Revert to plain go install honnef.co/go/tools/cmd/staticcheck\@&#8203;latest [`3e67572`](https://github.com/gohugoio/hugo/commit/3e67572c) [@&#8203;bep](https://github.com/bep) - navigation: Escape pre/post in front matter menu entries [`f63482b`](https://github.com/gohugoio/hugo/commit/f63482bf) [@&#8203;bep](https://github.com/bep) - Upgrade to Go 1.27.3 [`7343fc9`](https://github.com/gohugoio/hugo/commit/7343fc9c) [@&#8203;bep](https://github.com/bep) - resources: Make processed image key stable across builds [`ff4eab7`](https://github.com/gohugoio/hugo/commit/ff4eab75) [@&#8203;bep](https://github.com/bep) [#&#8203;15467](https://github.com/gohugoio/hugo/issues/15467) - tpl: Make StripHTML (plainify) more robust and faster [`7ec3a36`](https://github.com/gohugoio/hugo/commit/7ec3a366) [@&#8203;bep](https://github.com/bep) [#&#8203;15462](https://github.com/gohugoio/hugo/issues/15462) - tpl/transform: Make emojify and plainify preserve template.HTML input type [`895f583`](https://github.com/gohugoio/hugo/commit/895f5837) [@&#8203;bep](https://github.com/bep) [#&#8203;15452](https://github.com/gohugoio/hugo/issues/15452) - Make emojify return a string [`87bf585`](https://github.com/gohugoio/hugo/commit/87bf5858) [@&#8203;bep](https://github.com/bep) [#&#8203;15452](https://github.com/gohugoio/hugo/issues/15452) - Skip staticcheck in check.sh unless --full is set [`9d50291`](https://github.com/gohugoio/hugo/commit/9d502917) [@&#8203;bep](https://github.com/bep) [#&#8203;15453](https://github.com/gohugoio/hugo/issues/15453) - Delete CLAUDE.md [`683a877`](https://github.com/gohugoio/hugo/commit/683a877f) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/getkin/kin-openapi from 0.151.0 to 0.152.0 [`6e494d0`](https://github.com/gohugoio/hugo/commit/6e494d01) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.19 to 2.24.22 [`8c1fdca`](https://github.com/gohugoio/hugo/commit/8c1fdcac) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/parse/v2 from 2.8.16 to 2.8.18 [`ed22b85`](https://github.com/gohugoio/hugo/commit/ed22b85c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.149.0 to 0.151.0 [`4102d1a`](https://github.com/gohugoio/hugo/commit/4102d1af) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.51.0 to 0.52.0 [`ac5af66`](https://github.com/gohugoio/hugo/commit/ac5af664) [@&#8203;dependabot](https://github.com/dependabot)\[bot] </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguNCIsInVwZGF0ZWRJblZlciI6IjQ0LjI0Ni41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chore(deps): update dependency hugo to v0.169.0
Some checks failed
Tests / test (pull_request) Failing after 28s
c6e2f928b6
renovate-bot force-pushed renovate/hugo-0.x from c6e2f928b6
Some checks failed
Tests / test (pull_request) Failing after 28s
to 7e8f85322e
Some checks failed
Tests / test (pull_request) Failing after 30s
2026-11-13 17:00:38 +00:00
Compare
renovate-bot changed title from chore(deps): update dependency hugo to v0.169.0 to chore(deps): update dependency hugo to v0.170.0 2026-11-13 17:00:40 +00:00
renovate-bot force-pushed renovate/hugo-0.x from 7e8f85322e
Some checks failed
Tests / test (pull_request) Failing after 30s
to d43a9387cc
Some checks failed
Tests / test (pull_request) Failing after 1m4s
2026-11-17 18:01:04 +00:00
Compare
renovate-bot changed title from chore(deps): update dependency hugo to v0.170.0 to chore(deps): update dependency hugo to v0.170.1 2026-11-17 18:01:07 +00:00
Some checks failed
Tests / test (pull_request) Failing after 1m4s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/hugo-0.x:renovate/hugo-0.x'
git switch 'renovate/hugo-0.x'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/hugo-0.x'
git switch 'renovate/hugo-0.x'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/hugo-0.x'
git switch 'renovate/hugo-0.x'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/hugo-0.x'
git switch 'main'
git merge --squash 'renovate/hugo-0.x'
git switch 'main'
git merge --ff-only 'renovate/hugo-0.x'
git switch 'main'
git merge 'renovate/hugo-0.x'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikebell/mikebell.io!67
No description provided.