Skip to content

chore(deps): update dependency gohugoio/hugo to v0.165.0 - #280

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

chore(deps): update dependency gohugoio/hugo to v0.165.0#280
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/gohugoio-hugo-0.x

Conversation

@renovate

@renovaterenovateBot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

PackageUpdateChange
gohugoio/hugominor0.155.30.165.0

Release Notes

gohugoio/hugo (gohugoio/hugo)

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

v0.161.1

Compare Source

What's Changed

v0.161.0

Compare Source

This release contains two security hardening fixes:

  • We now run the Node tools PostCSS, Babel and TailwindCSS, by default, with the --permission flag with the permissions defined in security.node.permissions. This means that you need Node >= 22 installed and that css.TailwindCSS now requires that the Tailwind CSS CLI must be installed as a Node.js package. The standalone executable is no longer supported
  • We have made the defaults in security.http.urls more restrictive.

But there are some notable new features, as well:

Nested vars support in css.Build and css.Sass

A practical example in css.Build would be to have something like this in hugo.toml:

[params.style]
primary = "#​000000"background = "#ffffff"
[params.style.dark]
primary = "#ffffff"background = "#​000000"

And in the stylesheet:

@import"hugo:vars";
@import"hugo:vars/dark" (prefers-color-scheme: dark);
:root {
color-scheme: light dark;
}

Slice-based permalinks config

The permalinks configuration is now much more flexible (the old setup still works). It uses the same target matchers as in the cascade config, meaning you can now do:

permalinks:
- target:
kind: pagepath: "/books/**"pattern: /books/:year/:slug/
- target:
kind: sectionpath: "/{books,books/**}"pattern: /libros/:sections[1:]
- target:
kind: pagepattern: /other/:slug/

The above example isn't great, but it at least shows the gist of it.

A more flexible scheme for identifiers in filenames

What we had before was e.g. content/mypost.en.md which told Hugo that the content files was in English. With the new setup you could also name the file content/mypost._language_en_.md. This alone doesn't sound very useful, but this allows you to use more prefixes:

PrefixDescriptionRelevant for
language_LanguageContent and layout files.
role_RoleContent and layout files.
version_VersionContent and layout files.
outputformat_Output formatLayout files.
mediatype_Media typeLayout files.
kind_Page kindLayout files.
layout_LayoutLayout files.

All Changes

Note

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: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@renovaterenovateBot added the renovate Changes by renovate label Feb 18, 2026
@renovate
renovateBot requested a review from a team as a code ownerFebruary 18, 2026 17:42
@renovate
renovateBot enabled auto-merge (squash) February 18, 2026 17:42
@renovaterenovateBot added the renovate Changes by renovate label Feb 18, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from b3d7df2 to 920fc5fCompareFebruary 25, 2026 20:01
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.156.0chore(deps): update dependency gohugoio/hugo to v0.157.0Feb 25, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 3 times, most recently from 7ce3896 to ccc589dCompareMarch 3, 2026 05:43
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from ccc589d to 49ccbeeCompareMarch 16, 2026 21:46
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.157.0chore(deps): update dependency gohugoio/hugo to v0.158.0Mar 16, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 49ccbee to f10180eCompareMarch 23, 2026 20:54
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.158.0chore(deps): update dependency gohugoio/hugo to v0.159.0Mar 23, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from b94c4b8 to 57efc61CompareMarch 26, 2026 13:19
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.159.0chore(deps): update dependency gohugoio/hugo to v0.159.1Mar 26, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 57efc61 to 37b207fCompareApril 1, 2026 21:05
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.159.1chore(deps): update dependency gohugoio/hugo to v0.159.2Apr 1, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 37b207f to 936f73aCompareApril 4, 2026 16:29
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.159.2chore(deps): update dependency gohugoio/hugo to v0.160.0Apr 4, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 936f73a to 8b5419cCompareApril 8, 2026 05:55
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.160.0chore(deps): update dependency gohugoio/hugo to v0.160.1Apr 8, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from 7c89607 to 77f35e8CompareApril 14, 2026 05:40
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 77f35e8 to 8e9c4e1CompareApril 16, 2026 15:59
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from 7768257 to 6777003CompareApril 28, 2026 19:28
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.160.1chore(deps): update dependency gohugoio/hugo to v0.161.0Apr 28, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 6777003 to 38e9da4CompareApril 29, 2026 17:58
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.161.0chore(deps): update dependency gohugoio/hugo to v0.161.1Apr 29, 2026
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.162.1chore(deps): update dependency gohugoio/hugo to v0.163.0Jun 8, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from f1d485d to 6aa56f8CompareJune 11, 2026 22:52
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.163.0chore(deps): update dependency gohugoio/hugo to v0.163.1Jun 11, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from 4aa7be3 to 71ebafeCompareJune 15, 2026 20:14
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.163.1chore(deps): update dependency gohugoio/hugo to v0.163.2Jun 15, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 71ebafe to 8ebb54dCompareJune 21, 2026 04:01
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.163.2chore(deps): update dependency gohugoio/hugo to v0.163.3Jun 21, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 4 times, most recently from 3751e69 to 65b04e0CompareJune 30, 2026 06:56
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 65b04e0 to ecb6365CompareJuly 6, 2026 23:01
@renovaterenovateBot changed the title chore(deps): update dependency gohugoio/hugo to v0.163.3chore(deps): update dependency gohugoio/hugo to v0.164.0Jul 6, 2026
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 5 times, most recently from e2c2d97 to 652ea4cCompareJuly 17, 2026 09:26
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 5 times, most recently from 4786057 to cfe90e9CompareJuly 25, 2026 02:33
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from 6bd4f11 to 91f8ef5CompareJuly 29, 2026 19:08
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch 2 times, most recently from d4a84d7 to 2528396CompareAugust 9, 2026 09:49
@renovate
renovateBotforce-pushed the renovate/gohugoio-hugo-0.x branch from 2528396 to 99b39e0CompareAugust 12, 2026 18:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

renovateChanges by renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants