Skip to content

chore(deps): update dependency hugo to v0.166.0 - #43

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hugo-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hugo-0.x

Conversation

@renovate

@renovate renovate Bot commented Jul 27, 2025

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Update Change
hugo minor 0.148.10.166.0

Release Notes

gohugoio/hugo (hugo)

v0.166.0

Compare Source

This release is mostly about hardening and bug fixes, but there are some notable changes:

  • .Render now takes an optional context argument: {{ .Render "view" $ctx }}, mirroring the partial API. This makes it possible to pass e.g. a dict to a content view. See #​15077.
  • The return keyword in templates has been reimplemented. It now works in any template (not just partials) and can be used anywhere, e.g. inside if or range blocks. See #​15212.
  • New resources.Publish template function and IndexOf method on Pages.
  • related config: new tokenize option for index values, and index creation is faster.
  • Several security fixes; see the notes below.

Note

Glob patterns

The glob library used for e.g. module mounts (includeFiles, excludeFiles), cascade targets, segments, deployment matchers and noVendor has been upgraded to v1.0.0. This is a complete rewrite of the matching engine that fixes a long list of correctness bugs, but it also means that some patterns may behave differently:

  • Malformed patterns (e.g. an unclosed {, an empty [] class) now fail with a syntax error instead of being silently accepted.
  • ** matches any sequence of characters including separators, but it is not the **/ "globstar" of shells: **/x requires the literal / and does not match x, and a/**/b does not match a/b. Use {**/,}x if you need both.
  • \ is the escape character, so a literal backslash must be written as \\.

If a pattern that used to match no longer does (or vice versa), it was most likely relying on a bug in the old engine.

Security
  • text/org content is now denied by default, as Org mode's export blocks and @@html:...@@ snippets pass raw HTML through unescaped, making it the same XSS sink as text/html. Sites with Org content can opt back in via security.allowContent.
  • Remote fetches (resources.GetRemote etc.) now validate the resolved address at dial time and reject loopback, private, link-local, CGNAT and similar ranges. This only applies under the default security.http.urls allowlist; if you have customized it, you have opted into your own hosts and the check stands down. Proxies from HTTP_PROXY/HTTPS_PROXY hide the destination address from this check and are now ignored unless you set security.http.proxyFromEnvironment = true.
  • Node.js tools (PostCSS, Tailwind CSS etc.) now fail before invocation if a symlink inside the project resolves outside the allowed read/write roots. If you have a legitimate link, add its target to security.node.permissions.allowRead.
  • Mount roots that are themselves symlinks (e.g. themes/mytheme/assets -> /somewhere/else) are now dropped. This closes a gap in the themes/ confinement; absolute mount source values are still allowed.
Other
  • {{ return <value> }} outside a partial is now an error; it was previously silently ignored.
  • A page without an explicit slug whose title contains a / (e.g. Watch/listen to this) now gets a single URL segment (.../watch-listen-to-this/) instead of a nested one (.../watch/listen-to-this/). Taxonomy and term pages are not affected.
  • Hugo is now built with Go 1.27.
KaTeX

When upgrading to Hugo v0.166.0, sites using transform.ToMath with the output option set to html or htmlAndMathml must update the KaTeX stylesheet referenced in their template(s) to version 0.18.4 or higher. Using older CSS versions like 0.16.21 will cause certain mathematical or chemical expressions to render incorrectly.

Example update:

- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.18.4/dist/katex.min.css">

See these examples:

Bug fixes

Improvements

Dependency Updates

v0.165.0

Compare Source

The two main new things is the new css.ChromaStyles template func and the new importContext option demonstrated below.

{{ $light := css.ChromaStyles (dict "targetPath" "css/components/chroma-light.css" "style" "github" "mode" "light") }}
{{ $dark := css.ChromaStyles (dict "targetPath" "css/components/chroma-dark.css" "style" "github" "mode" "dark") }}
{{ $opts := dict "minify" true "importContext" (slice $light $dark) }}
{{ $css := resources.Get "css/main.css" | css.Build $opts }}

The importContext is relevant for css.Build, js.Build, css.Sass, and css.PostCSS. and it allows you to make resources (e.g. built from resources.FromString) resolvable in e.g. CSS @import statements.

Note

Bug fixes

Improvements

Dependency Updates

Documentation

v0.164.0

Compare Source

Notable new features in this release are:

Notes

Changes

Dependency Updates

v0.163.3

Compare Source

What's Changed

v0.163.2

Compare Source

What's Changed

v0.163.1

Compare Source

The majority of the fixes in this release are security related (including the upstream fix in 93c8c7d (golang.org/x/image)). Thanks to @​vnth4nhnt for finding the issues fixed in a00b5c7 and cf9c8f9 (I will do the CVE work on this later). There has been a uptick in security reports lately, which doesn't mean that Hugo has gotten less secure, this is mostly the work of the new and powerful AI tools using Hugo's restrictive security model as their baseline. Just take a look at Go's recent security issue list to see a demonstration of this.

What's Changed

v0.163.0

Compare Source

The main topic in this release is improvements to the AVIF image handling that we introduced in v0.162.0. See the docs for details, but:

  • We have turned down the default quality for AVIF to 60. Turns out, JPEG/WebP with quality 75 is comparable to AVIF with quality 60. You can now also set quality per image format in your project config (and also per image processed if needed).
  • We have added a hint to the AVIF with the same values as for WEBP. For lossy compression, the photo/picture hints (and the default) encodes with YUV420 chroma subsampling instead of YUV444, keeping 444 for text/icon/drawing. This greatly reduces the memory needed to encode these images.

Improvements

Dependency Updates

v0.162.1

Compare Source

What's Changed

v0.162.0

Compare Source

The notable new feature in this release is support for AVIF images (both encoder and decoder). There's a demo site set up that demonstrates the difference between HDR AVIF and SDR JPEG images. Note that that demo is only really interesting if viewed on an HDR capable screen (e.g. Apple Retina).

Security fixes

There are some notable security fixes in this release.

Security fixes in Go

This release upgrades from Go 1.26.1 to 126.3, which brings a set of security fixes. Some relevant for Hugo are:

  • XSS in html/template (CVE-2026-39826 & CVE-2026-39823): Two separate vulnerabilities where escaper bypasses in html/template could lead to Cross-Site Scripting (XSS).
  • html/template: Fixes an issue where JS template literal contexts were incorrectly tracked across template branches, which could lead to improper content escaping.
Security fixes and hardening in Hugo

The following changes either fix a concrete issue or reduce the default attack surface of hugo builds.

  • Disallow text/html content files by default (e41a064). A new security.allowContent policy gates which content media types may be used for pages under /content. text/html is denied by default; sites that rely on hand-authored or adapter-emitted HTML content can opt back in with security.allowContent = ['.*'].
  • Re-check security.http.urls on every redirect hop in resources.GetRemote (86fbb0f).
  • Reject symlinked entries in resources.Get (f8b5fa0).

We will update this section later with links to CVEs where applicable.

All changes

Important

✂ PR body was truncated to here.


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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 3 times, most recently from 4032bd0 to b9c543f Compare August 10, 2025 15:08
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from b9c543f to 4e3909a Compare August 13, 2025 03:46
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 4e3909a to fdc3c6a Compare August 27, 2025 19:09
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.148.2 chore(deps): update dependency hugo to v0.149.0 Aug 27, 2025
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.149.0 chore(deps): update dependency hugo to v0.150.0 Sep 19, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from fdc3c6a to 1c76320 Compare September 19, 2025 16:09
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.150.0 chore(deps): update dependency hugo to v0.150.1 Sep 25, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 1c76320 to 6ff22cd Compare September 25, 2025 13:07
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 6ff22cd to 8b09200 Compare October 2, 2025 14:23
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.150.1 chore(deps): update dependency hugo to v0.151.0 Oct 2, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 2 times, most recently from f72f0d4 to 69a998a Compare October 14, 2025 01:57
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 69a998a to 3cc980e Compare October 15, 2025 16:59
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.151.0 chore(deps): update dependency hugo to v0.151.1 Oct 15, 2025
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.151.1 chore(deps): update dependency hugo to v0.151.2 Oct 16, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 2 times, most recently from 9b14711 to 87ed78c Compare October 21, 2025 22:55
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.151.2 chore(deps): update dependency hugo to v0.152.0 Oct 21, 2025
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.152.0 chore(deps): update dependency hugo to v0.152.1 Oct 22, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 3 times, most recently from 05902c0 to ed127b2 Compare October 24, 2025 17:53
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.152.1 chore(deps): update dependency hugo to v0.152.2 Oct 24, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from ed127b2 to 40b41ce Compare November 5, 2025 23:06
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 40b41ce to 7d70a37 Compare December 2, 2025 18:52
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 7d70a37 to 9319f63 Compare December 19, 2025 13:53
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.152.2 chore(deps): update dependency hugo to v0.153.0 Dec 19, 2025
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 9319f63 to aaf15ca Compare December 20, 2025 17:02
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from b9d73fa to 7452feb Compare January 1, 2026 20:38
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.0 chore(deps): update dependency hugo to v0.154.1 Jan 1, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 7452feb to 40fea16 Compare January 2, 2026 20:34
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.1 chore(deps): update dependency hugo to v0.154.2 Jan 2, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 40fea16 to 3842dc8 Compare January 6, 2026 17:42
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.2 chore(deps): update dependency hugo to v0.154.3 Jan 6, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 3842dc8 to c2876cd Compare January 10, 2026 17:11
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.3 chore(deps): update dependency hugo to v0.154.4 Jan 10, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from c2876cd to c110283 Compare January 11, 2026 21:28
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.4 chore(deps): update dependency hugo to v0.154.5 Jan 11, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 2 times, most recently from 669abdd to f55112d Compare January 21, 2026 13:57
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from f55112d to ec3e1ab Compare January 28, 2026 17:52
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.154.5 chore(deps): update dependency hugo to v0.155.0 Jan 28, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from ec3e1ab to bc24c92 Compare January 30, 2026 13:50
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.155.0 chore(deps): update dependency hugo to v0.155.1 Jan 30, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from bc24c92 to ff51e45 Compare February 2, 2026 13:34
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.155.1 chore(deps): update dependency hugo to v0.155.2 Feb 2, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch 3 times, most recently from e357c04 to 7cd254e Compare February 8, 2026 21:27
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.155.2 chore(deps): update dependency hugo to v0.155.3 Feb 8, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 7cd254e to a1a48c0 Compare February 10, 2026 20:34
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.155.3 chore(deps): update dependency hugo to v0.156.0 Feb 18, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from a1a48c0 to 06f135f Compare February 18, 2026 18:05
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 06f135f to 457312b Compare February 25, 2026 19:42
@renovate renovate Bot changed the title chore(deps): update dependency hugo to v0.156.0 chore(deps): update dependency hugo to v0.157.0 Feb 25, 2026
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from 457312b to fba04d9 Compare March 6, 2026 02:02
@renovate
renovate Bot force-pushed the renovate/hugo-0.x branch from fba04d9 to 8a03c91 Compare March 16, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants