Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.

fix(deps): update module github.com/gohugoio/hugo to v0.161.1#250

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

fix(deps): update module github.com/gohugoio/hugo to v0.161.1#250
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-gohugoio-hugo-0.x

Conversation

@renovate

@renovate renovate Bot commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
github.com/gohugoio/hugo v0.146.4v0.161.1 age confidence

Release Notes

gohugoio/hugo (github.com/gohugoio/hugo)

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: page
      path: "/books/**"
    pattern: /books/:year/:slug/
  - target:
      kind: section
      path: "/{books,books/**}"
    pattern: /libros/:sections[1:]
  - target:
      kind: page
    pattern: /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:

Prefix Description Relevant for
language_ Language Content and layout files.
role_ Role Content and layout files.
version_ Version Content and layout files.
outputformat_ Output format Layout files.
mediatype_ Media type Layout files.
kind_ Page kind Layout files.
layout_ Layout Layout files.

All Changes

v0.160.1

Compare Source

What's Changed

v0.160.0

Compare Source

Now you can inject CSS vars, e.g. from the configuration, into your stylesheets when building with css.Build. Also, now all the render hooks has a .Position method, now also more accurate and effective.

Bug fixes

Improvements

Dependency Updates

Documentation

v0.159.2

Compare Source

Note that the security fix below is not a potential threat if you either:

EDIT IN: This release also adds release archives for non-extended-withdeploy builds.

What's Changed

v0.159.1

Compare Source

The regression fixed in this release isn't new, but it's so subtle that we thought we'd release this sooner rather than later. For some time now, the minifier we use have stripped namespaced attributes in SVGs, which broke dynamic constructs using e.g. AlpineJS' x-bind: namespace (library used by Hugo's documentation site).

To fix this, the upstream library has hadded a keepNamespaces slice option. It was not possible to find a default that would make all happy, so we opted for an option that at least would make AlpineJS sites work out of the box:

 [minify.tdewolff.svg]
      keepNamespaces = ['', 'x-bind']

What's Changed

v0.159.0

Compare Source

This release greatly improves and simplifies management of Node.js/npm dependencies in a multi-module setup. See this page for more information.

Note

  • Replace deprecated site.Data with hugo.Data in tests a8fca59 @​bep
  • Replace deprecated excludeFiles and includeFiles with files in tests 182b104 @​bep
  • Replace deprecated :filename with :contentbasename in the permalinks test eb11c3d @​bep

Bug fixes

Improvements

Dependency Updates

Documentation

v0.158.0

Compare Source

This release adds css.Build, native and very fast bundling/transformation/minifying of CSS resources. Also see the new strings.ReplacePairs, a very fast option if you need to do many string replacements.

Notes

Deprecations

The methods and config options are deprecated and will be removed in a future Hugo release.

Also see this article

Language configuration
  • languageCode → Use locale instead.
  • languages.<lang>.languageCode → Use languages.<lang>.locale instead.
  • languages.<lang>.languageName → Use languages.<lang>.label instead.
  • languages.<lang>.languageDirection → Use languages.<lang>.direction instead.
Language methods
  • .Site.LanguageCode → Use .Site.Language.Locale instead.
  • .Language.LanguageCode → Use .Language.Locale instead.
  • .Language.LanguageName → Use .Language.Label instead.
  • .Language.LanguageDirection → Use .Language.Direction instead.

Bug fixes

Improvements

Dependency Updates

v0.157.0

Compare Source

The notable new feature is GitInfo support for Hugo Modules. See this repo for a runnable demo where multiple versions of the same content is mounted into different versions.

Bug fixes

Improvements

Dependency Updates

v0.156.0

Compare Source

This release brings significant speedups of collections.Where and collections.Sort – but this is mostly a "spring cleaning" release, to make the API cleaner and simpler to understand/document.

Deprecated

  • Site.AllPages is Deprecated
  • Site.BuildDrafts is Deprecated
  • Site.Languages is Deprecated
  • Site.Data is deprecated, use hugo.Data
  • Page.Sites and Site.Sites is Deprecated, use hugo.Sites

See this topic for more info.

Removed

These have all been deprecated at least since v0.136.0 and any usage have been logged as an error for a long time:

Template functions

  • data.GetCSV / getCSV (use resources.GetRemote)
  • data.GetJSON / getJSON (use resources.GetRemote)
  • crypto.FNV32a (use hash.FNV32a)
  • resources.Babel (use js.Babel)
  • resources.PostCSS (use css.PostCSS)
  • resources.ToCSS (use css.Sass)

Page methods:

  • .Page.NextPage (use .Page.Next)
  • .Page.PrevPage (use .Page.Prev)

Paginator:

  • .Paginator.PageSize (use .Paginator.PagerSize)

Site methods:

  • .Site.LastChange (use .Site.Lastmod)
  • .Site.Author (use .Site.Params.Author)
  • .Site.Authors (use .Site.Params.Authors)
  • .Site.Social (use .Site.Params.Social)
  • .Site.IsMultiLingual (use hugo.IsMultilingual)
  • .Sites.First (use .Sites.Default)

Site config:

  • paginate (use pagination.pagerSize)
  • paginatePath (use pagination.path)

File caches:

  • getjson cache
  • getcsv cache

Notes

Bug fixes

Improvements

Dependency Updates

Build Setup

Documentation

v0.155.3

Compare Source

What's Changed

v0.155.2

Compare Source

Note that the bug fix below is for the two new dimensions introduced in v0.153.0 (version and role), multiple languages worked fine. Also, changes to the first version and role also worked, which had me head-scratching for a while. Oh, well, enjoy.

v0.155.1

Compare Source

What's Changed

v0.155.0

Compare Source

Some notable new things in this release are:

  • Improvements to how versions are handled: We now support version (and also for the other dimension) range queries (e.g. >= v1.0.0), and we now cache Go module version queries, which makes mounting multiple versions of the same GitHub repo with different version much more practical and enjoyable, se this site and config for an annotated example.
  • We finally have XMP and IPTC image metadata support, in addition to EXIF, see #​13146
  • Page aliases now works in multidimensional sites (e.g. multiple languages), and it is now much easier to create e.g. Netlify _redirects files that works in such setups.
  • There are several performance related WebP improvements in this release.
  • Also, image processing in general (e.g. resize operations) should be considerably more effective.

Breaking change

Prior to v0.155.0, alias paths beginning with a slash (/) were treated as server-relative. In v0.155.0 and later, they are now site-relative. This change only affects multilingual single-host projects that used alias paths beginning with a slash (/) to cross language boundaries. See details.

Note

Bug fixes

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.

@renovate
renovate Bot enabled auto-merge (squash) April 15, 2025 22:58
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.146.5 fix(deps): update module github.com/gohugoio/hugo to v0.146.6 Apr 20, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch 2 times, most recently from 0b9a7ca to 8086773 Compare April 22, 2025 19:48
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.146.6 fix(deps): update module github.com/gohugoio/hugo to v0.146.7 Apr 22, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 8086773 to d416638 Compare April 25, 2025 19:48
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.146.7 fix(deps): update module github.com/gohugoio/hugo to v0.147.0 Apr 25, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from d416638 to a9dc9f7 Compare May 1, 2025 15:08
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.0 fix(deps): update module github.com/gohugoio/hugo to v0.147.1 May 1, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from a9dc9f7 to 39013f2 Compare May 6, 2025 17:35
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.1 fix(deps): update module github.com/gohugoio/hugo to v0.147.2 May 6, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 39013f2 to 892a285 Compare May 12, 2025 13:18
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.2 fix(deps): update module github.com/gohugoio/hugo to v0.147.3 May 12, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 892a285 to a046dd2 Compare May 20, 2025 11:43
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.3 fix(deps): update module github.com/gohugoio/hugo to v0.147.4 May 20, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from a046dd2 to e6fbac6 Compare May 22, 2025 12:27
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.4 fix(deps): update module github.com/gohugoio/hugo to v0.147.5 May 22, 2025
@renovate

renovate Bot commented May 22, 2025

Copy link
Copy Markdown
Contributor Author

ℹ Artifact update notice

File name: deps/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 9 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.23.0 -> 1.24.0
github.com/gohugoio/hashstructure v0.5.0 -> v0.6.0
github.com/niklasfasching/go-org v1.7.0 -> v1.9.1
github.com/spf13/afero v1.14.0 -> v1.15.0
github.com/spf13/cast v1.7.1 -> v1.10.0
github.com/tdewolff/parse/v2 v2.7.18 -> v2.8.5-0.20251020133559-0efcf90bef1a
golang.org/x/net v0.39.0 -> v0.46.0
golang.org/x/sys v0.32.0 -> v0.37.0
golang.org/x/text v0.24.0 -> v0.30.0
google.golang.org/protobuf v1.36.5 -> v1.36.9

@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from e6fbac6 to 645c19a Compare May 27, 2025 13:15
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.5 fix(deps): update module github.com/gohugoio/hugo to v0.147.6 May 27, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.6 fix(deps): update module github.com/gohugoio/hugo to v0.147.7 May 31, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 645c19a to 360b6dc Compare May 31, 2025 13:58
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 360b6dc to 48c65b9 Compare June 7, 2025 18:32
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.7 fix(deps): update module github.com/gohugoio/hugo to v0.147.8 Jun 7, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 48c65b9 to 4cc4230 Compare June 23, 2025 11:48
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.8 fix(deps): update module github.com/gohugoio/hugo to v0.147.9 Jun 23, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.147.9 fix(deps): update module github.com/gohugoio/hugo to v0.147.9 - autoclosed Jun 29, 2025
@renovate renovate Bot closed this Jun 29, 2025
auto-merge was automatically disabled June 29, 2025 09:31

Pull request was closed

@renovate
renovate Bot deleted the renovate/github.com-gohugoio-hugo-0.x branch June 29, 2025 09:31
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 1aeeb42 to 69655b2 Compare July 11, 2025 19:31
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.148.0 fix(deps): update module github.com/gohugoio/hugo to v0.148.1 Jul 11, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 69655b2 to 58d4153 Compare July 27, 2025 13:56
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.148.1 fix(deps): update module github.com/gohugoio/hugo to v0.148.2 Jul 27, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.148.2 fix(deps): update module github.com/gohugoio/hugo to v0.148.2 - autoclosed Jul 29, 2025
@renovate renovate Bot closed this Jul 29, 2025
auto-merge was automatically disabled July 29, 2025 18:11

Pull request was closed

@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.148.2 - autoclosed fix(deps): update module github.com/gohugoio/hugo to v0.148.2 Jul 30, 2025
@renovate renovate Bot reopened this Jul 30, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 78e5b48 to 58d4153 Compare July 30, 2025 00:58
@renovate
renovate Bot enabled auto-merge (squash) July 30, 2025 07:12
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 58d4153 to 9fa8e01 Compare August 27, 2025 21:54
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.148.2 fix(deps): update module github.com/gohugoio/hugo to v0.149.0 Aug 27, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 9fa8e01 to 285189e Compare September 4, 2025 17:58
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.149.0 fix(deps): update module github.com/gohugoio/hugo to v0.149.1 Sep 4, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 285189e to 88b5d0f Compare September 8, 2025 17:45
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.149.1 fix(deps): update module github.com/gohugoio/hugo to v0.150.0 Sep 8, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 88b5d0f to 34b19f1 Compare September 25, 2025 13:15
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.150.0 fix(deps): update module github.com/gohugoio/hugo to v0.150.1 Sep 25, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 34b19f1 to 635fc7e Compare October 2, 2025 17:28
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.150.1 fix(deps): update module github.com/gohugoio/hugo to v0.151.0 Oct 2, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 635fc7e to 8ab478c Compare October 15, 2025 15:48
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.151.0 fix(deps): update module github.com/gohugoio/hugo to v0.151.1 Oct 15, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 8ab478c to 31ca32b Compare October 16, 2025 22:14
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.151.1 fix(deps): update module github.com/gohugoio/hugo to v0.151.2 Oct 16, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 31ca32b to 923a25d Compare October 22, 2025 02:45
@renovate renovate Bot changed the title fix(deps): update module github.com/gohugoio/hugo to v0.151.2 fix(deps): update module github.com/gohugoio/hugo to v0.152.0 Oct 22, 2025
@renovate
renovate Bot force-pushed the renovate/github.com-gohugoio-hugo-0.x branch from 923a25d to 01784a3 Compare October 22, 2025 21:36
@renovate

renovate Bot commented Dec 15, 2025

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: deps/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 11 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.23.0 -> 1.25.0
github.com/mattn/go-colorable v0.1.13 -> v0.1.14
github.com/mattn/go-isatty v0.0.20 -> v0.0.22
github.com/niklasfasching/go-org v1.7.0 -> v1.9.1
github.com/pelletier/go-toml/v2 v2.2.4 -> v2.3.0
github.com/spf13/afero v1.14.0 -> v1.15.0
github.com/spf13/cast v1.7.1 -> v1.10.0
github.com/tdewolff/parse/v2 v2.7.18 -> v2.8.12
golang.org/x/net v0.39.0 -> v0.53.0
golang.org/x/sys v0.32.0 -> v0.43.0
golang.org/x/text v0.24.0 -> v0.36.0
google.golang.org/protobuf v1.36.5 -> v1.36.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants