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

Open
botaniker wants to merge 1 commit from renovate/gohugoio-hugo-0.x into main
Member

This PR contains the following updates:

Package Update Change OpenSSF
gohugoio/hugo minor v0.111.3v0.165.0 OpenSSF Scorecard

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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;
}

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
Improvements
Dependency Updates
Build Setup
Documentation

v0.154.5

Compare Source

What's Changed

v0.154.4

Compare Source

What's Changed

Also see the new Page.OutputFormats.Canonical method.

v0.154.3

Compare Source

What's Changed

v0.154.2

Compare Source

What's Changed
  • Fix alpha/fuzzy border issue with new webp decoder for images with with transparent background e9b9b36 @​bep #​14339

v0.154.1

Compare Source

What's Changed

v0.154.0

Compare Source

Hugo v0.154.0 is the 14th release this year (not counting patch releases) and introduces partial decorators, or “partials with a twist.” This is a very powerful construct that I, @​bep, have always wanted to have in Hugo, but I could never wrap my head around an implementation. Until now.

A small and not very useful example:

{{ with partial "b.html" "World" }}Hello {{ . }}{{ end }}
{{ define "_partials/b.html" }}<b>{{ inner . }}</b>{{ end }}

The above renders to:

<b>Hello World</b>
  • The new inner keyword can be used zero or more times in a partial template, typically with different data (e.g. pages in a range), and its presence signals a reversal of the execution -- the callee becomes the caller.
  • Decorators can be deeply nested, see this PR for an example.

This release also brings some new utility funcs in the reflect package to identify the core types in Hugo. For example, to identify an processable image hasn't been trivial, now it is:

{{ $obj := . }}
{{ if reflect.IsResource $obj }}
   {{ if reflect.IsImageResource $obj }}
        // It has width/height and we can process it.
   {{ else }}
       // Just link to it.
   {{ end }}
{{ end }}
Bug fixes
Improvements
Dependency Updates

v0.153.5

Compare Source

What's Changed

v0.153.4

Compare Source

What's Changed

v0.153.3

Compare Source

What's Changed

v0.153.2

Compare Source

What's Changed

v0.153.1

Compare Source

[!note]
This is a bug fix release. See the main release for a list of new features.

v0.153.0

Compare Source

[!note]
There is a newer bug fix release available here.

This is a good one! Hugo v0.153.0 comes with a powerful new multidimensional content model (languages, versions and roles) and completely overhauls WebP image support, and much more:

  • For the new multidimensional content model, start reading sites matrix and sites complements. The matrix is what gets written to disk, complements allows e.g. a site in Swedish to fill in missing gaps in the site in Norwegian's page and resource collections. Also see the new Rotate method, that allows you to rotate the content tree in a given dimension.
  • For WebP we now build a WASM version of libwebp (v1.6.0) and run it in the Wazero runtime. We use this for both encoding and decoding. This solves an old and annoying issue with Go's stdlib's decoder, with loss of contrast and muted colors in some photos, but it also means that you don't need the extended version of Hugo to handle WebP images. And, drum roll, we now also support animated WebP, including converting to and from animated GIFs.
  • For MacOS, we now build signed and notarised pkg installers.

Also:

Notes
  • tpl/css: Deprecate libsass in favor of dartsass (note) 9937a5d @​bep #​14261
  • Build Order: Hugo builds sites based on the sorted dimensions (see below). In earlier versions, we built the sites starting with the default content language. This change is also reflected in the sort order of .Site.Sites to make it consistent with .Site.Languages.
  • Sort Order: The dimensions are sorted as follows, which affects build order and complement selection:
    • languages: By weight, then by name.
    • versions: By weight, then by semantic versioning (descending).
    • roles: By weight, then by name.
  • Deprecations:
  • Logging: We no longer log warnings about potential duplicate content paths, as this becomes impractical to reason about with a
    complex sites matrix.
Bug fixes
Improvements
Dependency Updates
Build Setup
Documentation

v0.152.2

Compare Source

In v0.152.0 we tightened the source validation for file mounts. We always said that project mounts can mount with absolute file/directorynames, modules/themes are restricted to relative. In v0.152.0 we narrowed module/themes mounts to be local, which made the setup in the bug report listed below fail:

[[module.mounts]]
source = '../../node_modules/bootstrap'
target = 'assets/vendor/bootstrap'

One part of this is security. But the construct above is usually very odd (the project uses files in a theme/module, not the other way around) and not very portable. But the example above demonstrates a valid exception, that we now have added support for in a portable way. The above example now works as it did before v0.152.0, but going forward you can also write:

[[module.mounts]]
source = 'node_modules/bootstrap'
target = 'assets/vendor/bootstrap'

We now have the node_modules as a special case: For themes/modules we first check if the mounted source exists locally, if not we try relative to the project root.

What's Changed

v0.152.1

Compare Source

These fixes are are all related to the YAML library upgrade in v0.152.0.

v0.152.0

Compare Source

The big new thing and the motivation behind this release is the upgrade to a more modern YAML library in @​goccy 's github.com/goccy/go-yaml. It's been a surprisingly long and winding road to get here. Note that this upgrade comes with some minor breaking changes, most notably that the old YAML 1.1 spec listed a set of strings that, when unquoted, were treated as boolean true or false. So if you're using any of the values in the table below as booleans, you need to adjust your YAML, but I suspect that fixing this very surprising behavior will fix more issues than it introduces. A big new thing with this new YAML library is the support for YAML anchors and aliases which helps to reduce duplication in e.g. your configuration. There are some examples in Hugo's release build configuration and in the Hugo's CI release setup.

Values Old meaning New meaning
yes, Yes, YES, y, Y, on, On, ON true (bool) yes, Yes, YES, y, Y, on, On, ON (string)
no, No, NO, n, N, off, Off, OFF false (bool) no, No, NO, n, N, off, Off, OFF (string)
Note
Improvements
Dependency Updates
Build Setup

v0.151.2

Compare Source

What's Changed

v0.151.1

Compare Source

This release is mostly motivated by some upstream security fixes:

I, @​bep, have inspected the above issues, and none of them seem to be relevant for Hugo, but we understand that many want to have a clean security report.

Bug fixes
Improvements
Dependency Updates

v0.151.0

Compare Source

Some notable new features in Hugo v0.151.0 are:

Note
Improvements and bug fixes
Dependency Updates

v0.150.1

Compare Source

What's Changed

v0.150.0

Compare Source

The big new feature in this relase is the new version config option on Module imports, which allows you to set the requested module version query directly in your Hugo configuration (e.g. hugo.toml). This is a feature that have been requested by many, and I (@​bep) was reminded about it by this recent thread, which also outlines a common use case for this: Mounting multiple old versions/branches of API documentation into the project.

What's Changed

v0.149.1

Compare Source

The main motivation behind this release is the Go 1.25.1 upgrade, which comes with a security fix. Hugo does not use the feature in question, but we understand that many Hugo users like to have a clean security report.

Note

Note that CSS minification now targets CSS3, removing certain optimizations that were specific to CSS2.

What's Changed

v0.149.0

Compare Source

[!NOTE]
If running on Netlify, make sure you have configured your build with their latest build image, see this issue.

Hugo v0.149.0 comes with bug fixes and a set of new features/improvements, notably:

Note
Bug fixes
Improvements
Dependency Updates
Documentation

v0.148.2

Compare Source

What's Changed

v0.148.1

Compare Source

What's Changed

v0.148.0

Compare Source

[!NOTE]
There's some minor breaking changes in this release. Please read this thread for more information.

Note
Bug fixes
Improvements
Dependency Updates

v0.147.9

Compare Source

Improvements and fixes
Dependency Updates

v0.147.8

Compare Source

The primary motivation behind this release is to get the Docker package security patched and up to date.

Improvements
Dependency Updates

v0.147.7

Compare Source

Bug fixes
Improvements
Dependency Updates

v0.147.6

Compare Source

What's Changed

v0.147.5

Compare Source

We have gotten some requests about updating the minifier library we use, so here you go @​myitcv and others. I'm probably going to regret doing that particular upgrade on a Thursday, but so be it.

What's Changed

v0.147.4

Compare Source

What's Changed

v0.147.3

Compare Source

Mostly bug fixes here, but also a new template func to get a really big number. You can read about why that is useful in the documentation.

v0.147.2

Compare Source

What's Changed

v0.147.1

Compare Source

Bug fixes
Improvements
Dependency Updates

v0.147.0

Compare Source

This release comes with a new aligny option (shoutout to @​pranshugaba for the implementation) for images.Text that, in combination with alignx makes it simple to e.g. center the text on top of image in both axis. But the main reason this release comes now and not later, is the improvements/fixes to the order Hugo applies the default configuration to some keys. This is inherited from how we did this before we rewrote the configuration handling, and it made the merging of configuration from modules/themes into the config root harder and less flexible than it had to be. Me, @​bep, looking into this, was triggered by this forum topic. Having many sites share a common configuration is very useful. With this release, you can simply get what the thread starter asks for by doing something à la:

baseURL = "http://example.org"
title = "My Hugo Site"

# ... import any themes/modules.

# This will merge in all config imported from imported modules. 
_merge = "deep"

See the documentation for details.

Bug fixes
Improvements
Dependency Updates

v0.146.7

Compare Source

Bug fixes
Improvements
Dependency Updates

v0.146.6

Compare Source

What's Changed

v0.146.5

Compare Source

What's Changed

v0.146.4

Compare Source

What's Changed

v0.146.3

Compare Source

What's Changed

v0.146.2

Compare Source

What's Changed

v0.146.1

Compare Source

This fixes a regression introduced in v0.146.0 released earlier today.

v0.146.0

Compare Source

[!NOTE]
There's a v0.146.1 bug fix release that fixes a regression introduced in this release.

The big new thing in this release is a fully refreshed template system – simpler and much better. We're working on the updated documentation for this, but see this issue for some more information. We have gone to great lengths to make this as backwards compatible as possible, but make sure you test your site before going live with this new version. This version also comes with a full dependency refresh and some useful new template funcs:

  • templates.Current: Info about the current executing template and its call stack. Very useful for debugging.
  • time.In: Returns the given date/time as represented in the specified IANA time zone.
Bug fixes
Improvements
Dependency Updates
Documentation

v0.145.0

Compare Source

The notable new feature is the new transform.PortableText function that makes it possible to use the Sanity CMS with Hugo.

Bug fixes
Improvements
Dependency Updates
Documentation
  • github: Build docker image with both extended and withdeploy tags e5eecbd @​margau
Build Setup

v0.144.2

Compare Source

What's Changed

v0.144.1

Compare Source

What's Changed

v0.144.0

Compare Source

Go 1.24 upgrade, several performance improvements, new :contentbasename and :slugorcontentbasename permalink tokens, enable KaTeX mhchem extension for transform.ToMath, full dependency refresh, new drop option for js.Build, new auth module option useful for private module repositories, autoID support for definition terms, new configurationTypes configuration option, and more. For more details, see this topic.

Note
Bug fixes
Improvements
Dependency Updates
Documentation

v0.143.1

Compare Source

What's Changed

v0.143.0

Compare Source

This is mostly a bug fix release, ironing out some quirks with the partial server rebuilds etc., but notable is also the new responseHeaders option on resources.GetRemote that allows you to extract headers from the server’s response.

Bug fixes
Improvements

v0.142.0

Compare Source

This is is mostly a bug fix release. It's a minor and not a patch release because of the image file cache issue fixes (see #​13273 #​13272). Fixing this required us to break the hashes for many of the generated images so we used this opportunity to simplify how we generate these hashes/image filenames.

Bug fixes
Improvements

v0.141.0

Compare Source

This release adds try, a new general mechanism for handling errors within templates, a new images.Mask image filter, a new images.QR function, a new alignx option to control horizontal alignment in images.Text, and more.

Note
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.140.2

Compare Source

The timing of this release comes from the security fix in golang.org/x/net's html.Parse function. This is used in two places in Hugo:

  1. Extracting table of contents from Asciidoctor rendered output.
  2. Collecting HTML classes etc. when build stats is enabled

It's a little bit of a stretch to see how this could be exploited in Hugo, but we understand that many want a clean security report. See this issue for details.

What's Changed

v0.140.1

Compare Source

Some bug fixes in the (most likely) last Hugo release of the year. Of some technical interest to some, I can mention that I, @​bep, have reworked hugoreleaser to use YAML (with anchors/aliases) instead of TOML for the release configuration. Have a look at the end result.

What's Changed

v0.140.0

Compare Source

The big new feature in this release is js.Batch – this enables JavaScript bundle groups (e.g. scripts per section) with global code splitting and flexible hooks/runners setup.

Bug fixes
Improvements
Dependency Updates

v0.139.5

Compare Source

This is a release created for technical reasons, see #​13147

It's the same as https://github.com/gohugoio/hugo/releases/tag/v0.139.4 -- go there for release archives.

v0.139.4

Compare Source

This release contains a security fix. See this Security Advisory for details. Note that this is only relevant if you don't trust your content (e.g. Markdown) files.

What's Changed

v0.139.3

Compare Source

What's Changed

v0.139.2

Compare Source

Note that this is the second patch release today. See v0.139.1. We had to do this release to get the Hugo Docs build running.

What's Changed

v0.139.1

Compare Source

What's Changed

v0.139.0

Compare Source

This release is mostly about removing code that has been deprecated for a long time. This has been shown as an ERROR in the build log and failed the build for at least the last 6 minor Hugo versions, in most cases much longer.

But this is also a full dependency refresh, and there are also some new stuff. For one, we added a -O flag to hugo server to open up the site in your browser after start. This is now my (@​bep) shortcut to start the server:

function h() {
  hugo server  -F -O -N -D
}
Note
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.138.0

Compare Source

What's Changed

v0.137.1

Compare Source

What's Changed

v0.137.0

Compare Source

Note that we have no longer build the deploy feature in the standard and extended archives. If you need that, download archives with withdeploy in the filename. See instalation for details. You can read #​12994 for more on the motivation behind this, but for one, it shaves off about 40% of the binary size.

Bug fixes
Improvements
Dependency Updates
  • deps: Upgrade github.com/bep/godartsass/v2 v2.1.0 => v2.2.0 e3304db @​bep
  • deps: Upgrade github.com/bep/lazycache v0.6.0 => v0.7.0 62567d3 @​bep
Documentation

v0.136.5

Compare Source

Fix stuck server error issues cb6e27b @​bep #​11378

v0.136.4

Compare Source

What's Changed

v0.136.3

Compare Source

What's Changed

v0.136.2

Compare Source

What's Changed

v0.136.1

Compare Source

What's Changed

v0.136.0

Compare Source

Note that we have much improved the Dockerfile and image this release. But this also means a slightly different way of setting it up. Improved documentation will come soon, but see 41f69a7 #​12920 #​12885 #​12921.

Bug fixes
Improvements
Dependency Updates
Documentation

v0.135.0

Compare Source

This is a small release, the main motivation was to finally ... drum roll ... get a tagged Hugo Docker image published. Big thanks to @​bmanth60 for the tip that solved this issue.

Improvements
Dependency Updates
Build Setup

v0.134.3

Compare Source

v0.134.2

Compare Source

What's Changed

v0.134.1

Compare Source

What's Changed

v0.134.0

Compare Source

Hugo v0.134.0 brings render hooks for tables, ContentWithoutSummary, scoped content render and Obsidian style callout alerts.

ContentWithoutSummary and scoped content render

This release finally brings a Page.ContentWithoutSummary method. This has been a long sought after method where the use case is obvious: render the summary with a more button that renders the ... content without summary. To enable this we have reimplemented the content summary handling in Hugo. This consolidates the 3 summary types (auto, manual and frontmatter) – they are now all HTML. This is a slightly breaking change (manual was plain text before), but the new behaviour should be much less confusing and easier to handle in the templates. If you want plain text, pipe it into plainify: {{ .Summary | plainify }}.

Before this release there was one instance of .Content for a given page, it was e.g. not possible to render a page's content slightly different (e.g. different heading levels) on the list pages or the home page. This release enables that with a new Page.Markup with an optional scope argument.

In the list template you would do something like this:

{{ range .Pages | first 5 }}
  {{ with .Markup "list" }}
     {{ with .Render }}
       <div>
           <li>{{ .Summary }}</li> 
           <li>{{ .ContentWithoutSummary }}</li> 
           <li>{{ .WordCount }}</li> 
           <li>etc ...</li> 
       </div>
     {{ end }}
  {{ end }}
{{ end }}

You can think of the custom scope list as a cache key: Multiple invocations on the same page with the same scope will give the same return value. You can now pass down some data or configuration to in .Page.Store to the templates that render this markup (shortcodes, render hooks), or you can use the new global hugo.Context.MarkupScope function made for this purpose:

{{ if eq hugo.Context.MarkupScope "list" }}
  {{/* Render some list markup. */}}
{{ else }}
  {{/* default */}}
{{ end }}
Render hooks for tables

This has been a long sought after feature. Now you can have full control over how you render your Markdown tables with table render hooks.

Obsidian style callout alerts

Hugo v0.133.0 added blockquote render hooks with GitHub styled alerts. We have since then gotten some feedback about extended alert syntax in Obsidian, and in Hugo v0.134.0 we now support both.

Bug fixes
Improvements
Dependency Updates
Documentation

v0.133.1

Compare Source

Bug fixes

v0.133.0

Compare Source

What's Changed

v0.132.2

Compare Source

What's Changed

v0.132.1

Compare Source

What's Changed

v0.132.0

Compare Source

Server-side math rendering using KaTeX with Markdown render hooks support, blockquote Markdown render hooks with GitHub style alerts syntax support, and more.

Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.131.0

Compare Source

Note that if you use Hugo's image processing, your processed images will get new (shorter!) file names when you build your site with this release. We have upgraded a third party hashing library to fix some rare but potential hash collisions, and since this would change some of the image hashes, we thought we might as well do some other related changes: We now use xxHash to create the image file hashes (very fast!) and we have removed the verbose processing information, making the filenames much shorter.

This release is also a full dependency refresh and it comes with one notable and very useful new feature. It is now possible to use permalinks tokens in the front matter url. See the documentation for more info. Thanks to @​n1xx1 for the implementation.

Note
Bug fixes
Improvements
Dependency Updates

v0.130.0

Compare Source

What's Changed

v0.129.0

Compare Source

This release brings a rewrite of the logic around browser refreshes when running hugo server. We have seen some situations where asset changes (e.g. image/CSS/JS) has not been refreshed reliably in all browsers, even with the developer console open and the cache disabled. We suspect this comes from a recent browser bug (typically: Works fine in Safari, does not refresh in Chrome). The strategy we've been using when a change triggers multiple changes (e.g. both HTML and CSS) is to do one "browser force refresh", which in LiveReload ends up as a window.location.reload(). With this release we:

  1. Are more specific about what we refresh, but fall back to "force refresh" for bigger change sets.
  2. INFO log exactly what we do in these situations with the prefix livereload.

Start the server with:

hugo server --logLevel info

And you should see how Hugo handles browser updates when you change content/templates etc.

A related tip; start the server with

hugo server --logLevel info -N

Hugo will navigate to the content file you're changing and log it in the console.

Also new in this release a new xxHash hashing function that is much faster than any of the other hashing functions in Hugo, especially for larger inputs.

Note

We have upgraded the integration with Git used to load GitInfo to be part of Hugo's Security Policy. We have added git to the default whitelist, but if you have a custom security policy, you may have to update that.

Bug fixes
Improvements
Dependency Updates

v0.128.2

Compare Source

What's Changed

v0.128.1

Compare Source

What's Changed

v0.128.0

Compare Source

This release brings TailwindCSS v4 (alpha) support. For more info about the TailwindCSS 4 integration, see this repo. Also notable is the new templates.Defer template func and the dramatically improved performance of $page.GetTerms for bigger sites.

Bug fixes
Improvements
Dependency Updates
Build Setup
Documentation

v0.127.0

Compare Source

This release brings proper HTTP caching and live reloading of remote resources fetched with resources.GetRemote, especially useful when used with content adapters.

Note that this isn't enabled out of the box, so if you need this, you need to add some configuration. The demo below is configured as:

[httpcache]
[httpcache.cache]
[httpcache.cache.for]
includes = ['https://sheets.googleapis.com/**']
[[httpcache.polls]]
low  = '1s'
high = '30s'
[httpcache.polls.for]
includes = ['https://sheets.googleapis.com/**']

https://github.com/gohugoio/hugo/assets/394382/85ecc217-3342-4ed2-ae8a-ed357a658b64

What's Changed

v0.126.3

Compare Source

v0.126.2

Compare Source

Bug fixes
Improvements

v0.126.1

Compare Source

What's Changed

v0.126.0

Compare Source

This release brings, drum roll, a long-awaited Hugo feature that has had many names. At one point we named it pages from data. You can read all about it in the documentation where it's titled Content Adapters.

Also worth mentioning are the new Extras Goldmark Extensions, which allows you to enable Markdown syntax for inserted text, mark text, subscript and superscript. A big thanks to @​bowman2001 for the implementation.

Improvements
Dependency Updates
Documentation
Build Setup

v0.125.7

Compare Source

Note that this release is only relevant if you use Hugo's openapi3.Unmarshal template function.

What's Changed
  • deps: Downgrade github.com/getkin/kin-openapi v0.124.0 => v0.123.0 3c6260f @​bep

v0.125.6

Compare Source

What's Changed

v0.125.5

Compare Source

What's Changed

v0.125.4

Compare Source

What Changed

v0.125.3

Compare Source

This release fixes a security issue reported by @​ejona86 (see #​12411) that could allow XSS injection from Markdown content files if one of the internal link or image render hook templates added in Hugo 0.123.0 are enabled. You typically control and trust the content files, but according to Hugo's security model, we state that "template and configuration authors (you) are trusted, but the data you send in is not."

v0.125.2

Compare Source

What's Changed

v0.125.1

Compare Source

What's Changed

v0.125.0

Compare Source

Some of the notable new features in this release:

  • strings.Diff template func.
  • .PageInner in render hooks to get the inner page when using .RenderShortcode in a shortcode, typically used to resolve links and page resources relative to an included Page.
  • Add Luminance to $image.Color, allowing for sorting by relative luminance. e197c7b @​bep #​10450

This release is built with Go 1.22.2 (#​12351) which comes with a fix for security issue CVE-2023-45288. We don't see how that could be exploited in Hugo, but we do appreciate that people want a clean security report.

Bug fixes
Improvements
Dependency Updates
Documentation

v0.124.1

Compare Source

What's Changed

v0.124.0

Compare Source

The new feature in this release is a new segments configuration section and a new --renderSegments flag/config key. This release also updates to Go 1.22.1 that fixes a security issue in the template package that Hugo uses (CVE-2023-45289, see golang/go#65697). We don't see how this could be exploited in Hugo, but we appreciate that Hugo users want to have a clean security report.

Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.123.8

Compare Source

v0.123.7

Compare Source

What's Changed

v0.123.6

Compare Source

What's Changed

v0.123.5

Compare Source

What's Changed

v0.123.4

Compare Source

v0.123.3

Compare Source

Bug fixes

v0.123.2

Compare Source

What's Changed

v0.123.1

Compare Source

v0.123.0

Compare Source

The work title for the v0.123.0 release has been "the million pages release", introducing a new memory limit that allows for a streaming build, shifting large objects out of memory when not in use. This release is also a rewrite of the Hugo core, fixing lots of long-lived bugs and adding some other exciting improvements (see below). There are some breaking changes that have been announced for a long time. Most sites will not be affected by this, but we recommend that you test your site with the new Hugo version before you set it up to build to production. Many people have contributed to this release, but a special shoutout goes to @​bep and @​jmooring, but also to @​TiGR and @​McShelby for their help testing and reporting bugs.

A list of notable new features:

  • You can now set a upper memory limit (default 25% of system memory) via the OS environment variable HUGO_MEMORYLIMIT (in gigabytes) allowing for much larger data/page sets and/or running on lower specced PCs. This is backed by a partitioned LRU cache used throughout Hugo. A cache that gets dynamically resized in low memory situations, allowing Go's Garbage Collector to free the memory. Note that for regular sized Hugo sites, the performance should be about the same as before.
  • New dependency tracker for partial server rebuilds. This quickly calculates the delta given a changed resource (e.g. a content file, template, JS file etc.) and supports transitive relations.
  • A new document store. Previously, a little simplified, we split the document store (where we store pages and resources) in a tree per language. This worked pretty well, but the structure made some operations harder than they needed to be. We have now restructured it into one Radix tree for all languages. Internally the language is considered to be a dimension of that tree, and the tree can be viewed in all dimensions concurrently. This makes some operations re. language simpler (e.g. finding translations is just a slice range), but the idea is that it should also be relatively inexpensive to add more dimensions if needed (e.g. role). With this we also introduce a new logical page Path which we will used going forward to support other content data sources.
  • Add warnidf template function, see docs
  • Add the [params] concept to front matter, see docs
  • Add images.Dither filter, see docs
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.122.0

Compare Source

The big new thing in Hugo 0.122.0 is LaTeX or TeX typsetting directly from Markdown using standard syntax. Thanks to @​j2kun and @​jmooring for making this happen.

Bug fixes
Improvements
Dependency Updates
Documentation

v0.121.2

Compare Source

The main motivation behind this release is a security fix in the upstream golang.org/x/crypto library. We don't see how that CVE could be exploited via Hugo, but we do appreciate that many want to have a clean security report.

There's also some new features in this release:

What's Changed

v0.121.1

Compare Source

The only change in this release is that the release binaries are compiled with Go 1.21.5 which contains some security fixes that are relevant for Hugo.

v0.121.0

Compare Source

There are some minor new features in this release, but it's mostly a release with bug fixes and dependency updates. One notable dependency update is libweb v1.3.2 which comes with a security fix for the Webp decoder (chromium: #​1479274, CVE-2023-4863). Hugo only uses the encoder (we use Go's native Webp decoder) so we're not affected by this, but we have been contacted by some corporate Hugo users who's eager to have a clean security report.

Notes
  • kin-openapi v0.122.0 has some minor breaking API changes which, from Hugo's side of it, can be adapted by using the new .Map accessors if you get an error.
Bug fixes and enhancements
Dependency Updates
Documentation

v0.120.4

Compare Source

The only change in this release is that the release binaries are compiled with Go 1.21.4 which comes with a security fix for Windows that may be relevant for Hugo. See:

What's Changed

v0.120.3

Compare Source

What's Changed

v0.120.2

Compare Source

What's Changed

v0.120.1

Compare Source

What's Changed

v0.120.0

Compare Source

This is a full dependency refresh and a couple of new cool features:

A new Padding image filter, and a new debug.Timer template func. The new debug.Timer is useful for finding performance bottle necks in templates:

{{ $timer := debug.Timer "slowTemplate" }}
// ...
{{ $timer.Stop }}

If you then run hugo --logLevel info you should see timer info logged at the end of the build. You can have as many timers as you want and if you don't stop them, they will be stopped at the end of build.

Hugo now also builds release binaries for Solaris now that a long-living issue in the upstream ƒsnotify library has been fixed, thanks to @​nshalman.

Notes
  • The enableEmoji flag now only works for Markdown content. This is unfortunate, but the old solution has some known issues and it was too hard to make it work properly as a general thing across all formats. See #​11598
  • site.DisqusShortname is deprecated 2eca1b3
  • site.GoogleAnalytics is deprecated a692278
  • site.Author is deprecated d4016dd
  • site.Social is deprecated 4910312

Also, we have changed the string type for some of the fields and methods:

  • .Fragments.ToHTML now returns template.HTML
  • $resource.Data.Integrity now returns a string and not a template.HTMLAttr
  • delimit now returns a string and not a template.HTML See #​10876 #​11502.
  • the URL functions now returns a string, see #​11536
  • The paginator Pager now returns a string.
  • site.BaseURL now returns a string.

The above should both solve some issues and make the above types more useful and easer to reason about. But if you use the delimit function to process HTML and see some unexpected escaping after this release, e.g.:

{{ $s := slice "<i>foo</i>" }}
{{ delimit $s "," }}

Then you need to mark the type with safeHTML:

{{ $s := slice "<i>foo</i>" }}
{{ delimit $s "," | safeHTML }}
Bug fixes
Improvements
Dependency Updates
Documentation

v0.119.0

Compare Source

This version is built with Go 1.21.1 which contains some relevant security fixes for the html/template package, see Issue 62196 and Issue 62197. This is the main reason Hugo 0.119.0 is released sooner rather than later. But this release also comes with a dependency refresh and some useful image processing improvements:

  • A new general-purpose Process method and filter.
  • A new Opacity filter.

Process support all of the existing scaling operations, but it can also be used do simple format conversions (e.g. from JPG to PNG). A before/after example:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
}}
{{ $watermark = $watermark.Resize (printf "%dx%d png" $watermark.Width $watermark.Height )

There are some issues with the above:

  1. The source image does not support transparency, so the transparency pixels will be filled with the configured background colour.
  2. The image will be decoded and encoded twice with a potential loss in quality.
  3. It's clumsy.

With Hugo 0.119.0 the above can be written as:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
       (images.Process "png") 
}}
Bug fixes
Improvements
Dependency Updates
Documentation

v0.118.2

Compare Source

What's Changed

v0.118.1

Compare Source

Note: There still seem to be an issue on Vercel.


This release only fixes a GLIBC_xxx not found issue with the Linux AMD64 binary when running on older Linux versions, which is the situation when building on Netlify/Vercel etc. 7e9092e @​bep #​11414

There's no functional changes in this release. See v0.118.0.

v0.118.0

Compare Source

Note: Hugo 0.118.2 fixes an issue with the Linux binaries when building on Netlify/Vercel/etc.


Hugo 0.118.0 now builds with Go 1.21. This version also comes with:

  • Proper CJK support in Markdown:
  [markup.goldmark]
    [markup.goldmark.extensions]
      [markup.goldmark.extensions.cjk]
        # Whether to enable CJK support.
        enable = false
        # Whether softline breaks between east asian wide characters should be ignored.
        eastAsianLineBreaks = false    
        #  Whether a '\' escaped half-space(0x20) should not be rendered.
        escapedSpace = false
  • A revamped implementation of hugo new site and hugo new theme. See details.
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.117.0

Compare Source

This is a release on the small side, but. especially the new Page.RenderShortcodes method is so useful, especially for bigger sites, that we decided to get it out sooner rather than later. This method renders all the shortcodes in the content, preserving the surrounding markup (e.g. Markdown) as is. See the Hugo Documentation for more information.

Improvements
Dependency Updates
Documentation

v0.116.1

Compare Source

What's Changed

v0.116.0

Compare Source

There are two notable changes in this release. For one, we have changed the default location of the cacheDir (where Hugo stores all its file caches). Having the cache stored in a /tmp folder has had its issues, especially for the module cache and especially on MacOS. The current new default should be better and more stable. See See Configure CacheDir for more info.

Also in this release: The where template func finally supports regular expressions with the new like operator.

Note
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.115.4

Compare Source

Bug fixes
Improvements

v0.115.3

Compare Source

What's Changed

v0.115.2

Compare Source

Bug fixes
Improvements
Build Setup

v0.115.1

Compare Source

Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.115.0

Compare Source

The notable new feature in this release is that you can now have permalink configuration also for section and taxonomy pages. Thanks to @​Mai-Lapyst for the implementation. See the documentation for more information.

Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.114.1

Compare Source

Bug fixes
Improvements
Dependency Updates
Build Setup

v0.114.0

Compare Source

The main new thing in this release is that we now support both major versions of the Dart Sass Embedded protocol, which means that you now can use the regular Dart Sass binary. We measured the new protocol to be faster with high concurrency:

name                             old time/op    new time/op    delta
Transpiler/SCSS-10                  114µs ± 0%     145µs ± 1%  +26.40%  (p=0.029 n=4+4)
Transpiler/Start_and_Execute-10    25.6ms ± 2%    26.0ms ± 3%     ~     (p=0.486 n=4+4)
Transpiler/SCSS_Parallel-10        89.0µs ± 2%    44.4µs ± 3%  -50.12%  (p=0.029 n=4+4)

name                             old alloc/op   new alloc/op   delta
Transpiler/SCSS-10                 1.33kB ± 1%    1.33kB ± 0%     ~     (p=1.000 n=4+4)
Transpiler/Start_and_Execute-10    22.4kB ± 1%    22.4kB ± 1%     ~     (p=0.886 n=4+4)
Transpiler/SCSS_Parallel-10        1.34kB ± 3%    1.33kB ± 1%     ~     (p=1.000 n=4+4)

name                             old allocs/op  new allocs/op  delta
Transpiler/SCSS-10                   18.0 ± 0%      18.0 ± 0%     ~     (all equal)
Transpiler/Start_and_Execute-10       144 ± 1%       150 ± 0%   +4.16%  (p=0.029 n=4+4)
Transpiler/SCSS_Parallel-10          18.0 ± 0%      18.0 ± 0%     ~     (all equal)

We have also moved to a new log library and added some new math functions and also revised the existing set to work better with a mix of scalars and slices.

Notes
  • We have removed the flags --log, --verboseLog, added the new flag --logLevel and deprecated --verbose and --debug See #​11088
  • This release contains a security fix in the upstream Go HTML template library disallowing JavaScript inside backticks by default. See golang/go#59234 If you really need this and are sure this isn't a security risk in your case, you can revert to the old behaviour:
[security]
[security.gotemplates]
allowActionJSTmpl = true
Bug fixes
Improvements
Dependency Updates
Documentation
Build Setup

v0.113.0

Compare Source

This release adds TLS/HTTPS support to hugo server (see cf38c73 and #​11064 for details) entirely backed by mkcert. We still default to http which is recommended and good enough for 99% of the Hugo use, but there are some situations where you really need it.

We have added a new sub command and some new flags to hugo server to enable this:


# Installs a local CA in the system root store. You only need to do this once.
hugo server trust

#  Generates locally-trusted certificates (if not already created) and starts the server with TLS/HTTPS enabled.
hugo server --tlsAuto

Note that we just delegate to mkcert using its default settings, so all of their documentation is relevant.

Also note that this is currently only supported for Linux, MacOS and Windows. And if you install on Linux using Snap, you will currently get an access denied error when running hugo server trust. A workaround for that, or if you need to use some of mkcert's advanced options, is to use mkcert directly to install the local CA:

go install filippo.io/mkcert@latest
mkcert -install

You can then start the server with hugo server --tlsAuto.

If you have obtained the TLS certificate and key file by other means, you can use the --tlsCertFile and --tlsKeyFile flags. When --tlsAuto or --tlsCertFile and --tlsKeyFile is set and no --baseURL is provided as a flag, the server is started with TLS and https as the protocol.

v0.112.7

Compare Source

What's Changed

v0.112.6

Compare Source

v0.112.5

Compare Source

What's Changed

v0.112.4

Compare Source

Documentation

v0.112.3

Compare Source

What's Changed

v0.112.2

Compare Source

What's Changed

v0.112.1

Compare Source

What's Changed

Also see the main release: https://github.com/gohugoio/hugo/releases/tag/v0.112.0

v0.112.0

Compare Source

Note: There's a patch release out already, see https://github.com/gohugoio/hugo/releases/tag/v0.112.1

Proper TailwindCSS v3.x support, much improved language config merge, consolidation of all Hugo config (check out hugo config), rewritten commands package (CLI) using SimpleCobra, Goldmark's typographer extension (quotation marks per language), and more.

Headlines
TailwindCSS v3.x Support, new cache buster configuration

See https://github.com/bep/hugo-starter-tailwind-basic for a running example.

TailwindCSS 3 has been out for a while now, and unfortunately their new build strategy didn't work very well with Hugo. But this release adds a new build.cachebusters config option for the resource cache that allows more fine grained control over when to trigger a new Tailwind build. This is a generally useful feature, so if you're having issues not seeing your resource changes (e.g. change to a JS file) on change, you could try to tweak the defaults. A tip is to run the server with hugo server --debug and watch out for log messages prefixed with cachebuster: on file changes.

There are several possible setups here, but one that we have tested and that works well is outlined in the config below. The basic concept is to add hugo_stats.json to the server watcher list in Hugo and trigger a new TailwindCSS build only whenever either this file or the main CSS file changes.

[module]
  [[module.mounts]]
    source = "assets"
    target = "assets"
  [[module.mounts]]
    source = "hugo_stats.json"
    target = "assets/watching/hugo_stats.json"

[build]
  writeStats = true
  [[build.cachebusters]]
    source = "assets/watching/hugo_stats\\.json"
    target = "styles\\.css"
  [[build.cachebusters]]
    source = "(postcss|tailwind)\\.config\\.js"
    target = "css"
  [[build.cachebusters]]
    source = "assets/.*\\.(js|ts|jsx|tsx)"
    target = "js"
  [[build.cachebusters]]
    source = "assets/.*\\.(.*)$"
    target = "$1"

And then in tailwind.config.js:

module.exports = {
	content: ['./hugo_stats.json'],
};
Reconsolidated all configuration handling

For this release we have collected all configuration into one big Go struct and rewritten the command line API using SimpleCobra. All of this makes the source code easier to maintain and understand, but the original motivation for this was to get a complete and autogenerated API reference for Hugo (we're working on getting that done), but this also have some less technical upsides:

'hugo config' is now complete

What you get when running hugo config is a complete TOML representation (add --format json or --format yaml for alternative formats) of the effective configuration. As this will include default values and configuration merged in from themes, we don't recommend to copy and paste this into hugo.toml, as that would make your configuration very verbose.

Improved language config handling

See issue #​10620 for some details, but in general, the merge behaviour of sections from languages is much improved. In the example below for language en you will now get:

 "comments": {
    "color": "blue",
    "title": "English Comments Title",
}

In earlier versions of Hugo you would get:

 "comments": {
    "title": "English Comments Title",
}
title = "Base Title"
staticDir = "mystatic"
[params]
[params.comments]
color = "blue"
title = "Default Comments Title"
[languages]
[languages.en]
title = "English Title"
[languages.en.params.comments]
title = "English Comments Title"

Note that values in a given language will always have precedence over same keys in root (the section inside the language is the receiving side of any merge operation), so, if you want the old (and buggy) behaviour, you can add a merge strategy to one of the params sections, e.g:

[languages.en.params.comments]
_merge = "none"
title = "English Comments Title"

You can now also configure just about everything per language. One useful example would be the Goldmark typographer extension:

[languages.de]
languageCode = 'de-DE'
languageName = 'Deutsch'
weight = 2
[languages.de.markup.goldmark.extensions.typographer]
leftDoubleQuote = '&laquo;'   # default &ldquo;
rightDoubleQuote = '&raquo;'  # default &rdquo;
More info in verbose build output

If you build flag with the -v, you will now get timing info for the core building steps in Hugo:

INFO 2023/05/16 09:53:55 process in 17 ms
INFO 2023/05/16 09:53:55 assemble in 345 ms
INFO 2023/05/16 09:53:55 render in 341 ms
INFO 2023/05/16 09:53:55 postProcess in 0 ms
Notes
Bug fixes
Improvements
Dependency Updates
Documentation

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 Renovate Bot. The local configuration can be found in the SI Renovate Bot repository.

This PR contains the following updates: | Package | Update | Change | OpenSSF | |---|---|---|---| | [gohugoio/hugo](https://github.com/gohugoio/hugo) | minor | `v0.111.3` → `v0.165.0` | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/gohugoio/hugo/badge)](https://securityscorecards.dev/viewer/?uri=github.com/gohugoio/hugo) | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/30) for more information. --- ### Release Notes <details> <summary>gohugoio/hugo (gohugoio/hugo)</summary> ### [`v0.165.0`](https://github.com/gohugoio/hugo/releases/tag/v0.165.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.164.0...v0.165.0) The two main new things is the new `css.ChromaStyles` template func and the new `importContext` option demonstrated below. ```handlebars {{ $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 - Remove tailwindcss from the default security.exec.allow list (note) [`8a55df7`](https://github.com/gohugoio/hugo/commit/8a55df7a) [@&#8203;bep](https://github.com/bep) [#&#8203;15178](https://github.com/gohugoio/hugo/issues/15178) [#&#8203;15171](https://github.com/gohugoio/hugo/issues/15171) ##### Bug fixes - Fix resource transformation chaining after content access [`f772998`](https://github.com/gohugoio/hugo/commit/f772998f) [@&#8203;bep](https://github.com/bep) [#&#8203;15189](https://github.com/gohugoio/hugo/issues/15189) - Fix server static file detection for deleted files/directories in the static syncer [`2ffaf1f`](https://github.com/gohugoio/hugo/commit/2ffaf1fc) [@&#8203;bep](https://github.com/bep) - Fix server errors when deleting static files or directories [`a808f6e`](https://github.com/gohugoio/hugo/commit/a808f6e4) [@&#8203;bep](https://github.com/bep) [#&#8203;15174](https://github.com/gohugoio/hugo/issues/15174) - Fix panic on server atomic save edits on MacOS [`6bf1524`](https://github.com/gohugoio/hugo/commit/6bf15241) [@&#8203;bep](https://github.com/bep) [#&#8203;15130](https://github.com/gohugoio/hugo/issues/15130) - markup/asciidocext: Fix TOC parsing for asciidoctor-html5s [`f961093`](https://github.com/gohugoio/hugo/commit/f961093e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15121](https://github.com/gohugoio/hugo/issues/15121) - snap: Fix snap home environment [`984358f`](https://github.com/gohugoio/hugo/commit/984358f0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15114](https://github.com/gohugoio/hugo/issues/15114) ##### Improvements - resources: Resume chained resource transformations [`995a215`](https://github.com/gohugoio/hugo/commit/995a2159) [@&#8203;bep](https://github.com/bep) [#&#8203;15189](https://github.com/gohugoio/hugo/issues/15189) [#&#8203;15189](https://github.com/gohugoio/hugo/issues/15189) - resources/jsconfig: Drop source root mapping for the current source root [`f88f0a9`](https://github.com/gohugoio/hugo/commit/f88f0a9f) [@&#8203;bep](https://github.com/bep) [#&#8203;15169](https://github.com/gohugoio/hugo/issues/15169) - circleci: Upgrade to Go 1.26.5 [`52c9bd7`](https://github.com/gohugoio/hugo/commit/52c9bd79) [@&#8203;bep](https://github.com/bep) - Add Data.Artifacts to css.Build and js.Build [`44da086`](https://github.com/gohugoio/hugo/commit/44da0860) [@&#8203;bep](https://github.com/bep) [#&#8203;15173](https://github.com/gohugoio/hugo/issues/15173) - css: Add classDark and classLight options to css.ChromaStyles and gen chromastyles [`33d1f2c`](https://github.com/gohugoio/hugo/commit/33d1f2c8) [@&#8203;bep](https://github.com/bep) [#&#8203;15167](https://github.com/gohugoio/hugo/issues/15167) - markup/highlight: Re-emit token colors dropped by Chroma's minifier [`64da6d7`](https://github.com/gohugoio/hugo/commit/64da6d7c) [@&#8203;bep](https://github.com/bep) [#&#8203;15161](https://github.com/gohugoio/hugo/issues/15161) - Add importContext option to css.Build, js.Build, css.Sass and css.TailwindCSS [`70db201`](https://github.com/gohugoio/hugo/commit/70db201e) [@&#8203;bep](https://github.com/bep) [#&#8203;15103](https://github.com/gohugoio/hugo/issues/15103) - Remove some old deprecations [`8a468df`](https://github.com/gohugoio/hugo/commit/8a468df0) [@&#8203;bep](https://github.com/bep) - Add css.ChromaStyles [`615e45d`](https://github.com/gohugoio/hugo/commit/615e45d6) [@&#8203;bep](https://github.com/bep) [#&#8203;15112](https://github.com/gohugoio/hugo/issues/15112) - check.sh: Handle staticcheck not installed/in PATH [`a243a61`](https://github.com/gohugoio/hugo/commit/a243a615) [@&#8203;Soundcreates](https://github.com/Soundcreates) - warpc: Improve AVIF error message on memory allocation failure [`7d90277`](https://github.com/gohugoio/hugo/commit/7d90277a) [@&#8203;bep](https://github.com/bep) - cache/filecache: Don't prune used cache entries with mixed-case dir names [`861ede6`](https://github.com/gohugoio/hugo/commit/861ede6d) [@&#8203;bep](https://github.com/bep) [#&#8203;15101](https://github.com/gohugoio/hugo/issues/15101) - Drop symlinks in parent directories [`f228c87`](https://github.com/gohugoio/hugo/commit/f228c87d) [@&#8203;bep](https://github.com/bep) - Delete .gemini [`7df45f6`](https://github.com/gohugoio/hugo/commit/7df45f61) [@&#8203;bep](https://github.com/bep) - common/hugo: Include non-go dependencies in go env output [`89b8c32`](https://github.com/gohugoio/hugo/commit/89b8c322) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15116](https://github.com/gohugoio/hugo/issues/15116) ##### Dependency Updates - build(deps): bump github.com/bep/imagemeta from 0.17.3 to 1.0.0 [`0bb337b`](https://github.com/gohugoio/hugo/commit/0bb337b2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.28.1 to 0.28.2 [`03dc917`](https://github.com/gohugoio/hugo/commit/03dc9170) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.14 to 2.24.16 [`c829b73`](https://github.com/gohugoio/hugo/commit/c829b736) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.145.0 to 0.146.0 [`94f3908`](https://github.com/gohugoio/hugo/commit/94f3908e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/rogpeppe/go-internal from 1.15.0 to 1.16.0 [`75fcc75`](https://github.com/gohugoio/hugo/commit/75fcc752) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/mattn/go-isatty from 0.0.22 to 0.0.24 [`b5fa03d`](https://github.com/gohugoio/hugo/commit/b5fa03d3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.8.4 to 1.8.5 [`9da472d`](https://github.com/gohugoio/hugo/commit/9da472dd) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.47.0 to 0.48.0 [`635532a`](https://github.com/gohugoio/hugo/commit/635532a2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.13 to 2.2.14 [`9c71f60`](https://github.com/gohugoio/hugo/commit/9c71f600) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.144.0 to 0.145.0 [`420527f`](https://github.com/gohugoio/hugo/commit/420527fc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.43.0 to 0.44.0 [`7fe786e`](https://github.com/gohugoio/hugo/commit/7fe786e3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.17.2 to 0.17.3 [`03b244f`](https://github.com/gohugoio/hugo/commit/03b244fc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.13 to 2.24.14 [`9611813`](https://github.com/gohugoio/hugo/commit/96118133) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.8.2 to 1.8.4 [`e35b7f0`](https://github.com/gohugoio/hugo/commit/e35b7f04) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.56.0 to 0.57.0 [`0796fa7`](https://github.com/gohugoio/hugo/commit/0796fa7a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.38.0 to 0.40.0 [`1b701b7`](https://github.com/gohugoio/hugo/commit/1b701b72) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.140.0 to 0.144.0 [`a32d70b`](https://github.com/gohugoio/hugo/commit/a32d70b7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1 [`948cfb9`](https://github.com/gohugoio/hugo/commit/948cfb98) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.37.0 to 0.38.0 [`8930802`](https://github.com/gohugoio/hugo/commit/8930802e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Remove Star History from README [`dd3f273`](https://github.com/gohugoio/hugo/commit/dd3f2731) [@&#8203;bep](https://github.com/bep) [#&#8203;15190](https://github.com/gohugoio/hugo/issues/15190) - Update README.md [`d1f191c`](https://github.com/gohugoio/hugo/commit/d1f191c5) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.164.0`](https://github.com/gohugoio/hugo/releases/tag/v0.164.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.163.3...v0.164.0) Notable new features in this release are: - The Chroma highlighter styles now introduces [dark/light pairs](https://gohugo.io/quick-reference/syntax-highlighting-styles/#modes). See also the new flags on the [hugo gen chromastyles](/commands/hugo_gen_chromastyles/) command. - New template funcs [encoding.HexEncode](https://gohugo.io/functions/encoding/hexencode/), [encoding.HexDecode](https://gohugo.io/functions/encoding/hexdecode/), and [crypto.Hash](https://gohugo.io/functions/crypto/hash/). - New [markup.rst.syntaxHighlight](https://gohugo.io/configuration/markup/#syntaxhighlight) option. - We added Pandoc citation support. - We now spport sub paths in layouts passed to [Page.Render](https://gohugo.io/methods/page/render/#article). - This release also fixes a performance regression introduced in Hugo v0.128.0. This should mostly be prominent in bigger sites. See [this discussion](https://discourse.gohugo.io/t/hugo-building-slowly-from-release-0-128-0/57314/20) for some background. ##### Notes - tpl/resources: Deprecate resources.PostProcess in favour of templates.Defer [`29ed932`](https://github.com/gohugoio/hugo/commit/29ed9325) [@&#8203;bep](https://github.com/bep) [#&#8203;15086](https://github.com/gohugoio/hugo/issues/15086) ##### Changes - all: Rewrite deprecated constructs in tests [`5a5f4a5`](https://github.com/gohugoio/hugo/commit/5a5f4a54) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Support sub paths in layouts passed to .Render [`d83ce27`](https://github.com/gohugoio/hugo/commit/d83ce27a) [@&#8203;bep](https://github.com/bep) [#&#8203;15056](https://github.com/gohugoio/hugo/issues/15056) - Add markup.rst.syntaxHighlight option [`c6acc24`](https://github.com/gohugoio/hugo/commit/c6acc246) [@&#8203;bep](https://github.com/bep) [#&#8203;5349](https://github.com/gohugoio/hugo/issues/5349) - tpl/resources: Deprecate resources.PostProcess in favour of templates.Defer [`29ed932`](https://github.com/gohugoio/hugo/commit/29ed9325) [@&#8203;bep](https://github.com/bep) [#&#8203;15086](https://github.com/gohugoio/hugo/issues/15086) - tpl/collections: Include key in IsSet unsupported-type warning [`671897a`](https://github.com/gohugoio/hugo/commit/671897ae) [@&#8203;bejaratommy](https://github.com/bejaratommy) [#&#8203;11794](https://github.com/gohugoio/hugo/issues/11794) - create: Keep new content placeholders buildable [`499794d`](https://github.com/gohugoio/hugo/commit/499794d1) [@&#8203;sjh9714](https://github.com/sjh9714) [#&#8203;15078](https://github.com/gohugoio/hugo/issues/15078) - hugio: Speedup hasBytesWriter [`65c8217`](https://github.com/gohugoio/hugo/commit/65c82178) [@&#8203;bep](https://github.com/bep) - tpl/crypto: Add crypto.Hash [`dfb35dc`](https://github.com/gohugoio/hugo/commit/dfb35dcd) [@&#8203;bep](https://github.com/bep) [#&#8203;15072](https://github.com/gohugoio/hugo/issues/15072) - Add encoding.HexDecode/Encode [`a5ec542`](https://github.com/gohugoio/hugo/commit/a5ec5423) [@&#8203;bep](https://github.com/bep) [#&#8203;15068](https://github.com/gohugoio/hugo/issues/15068) [#&#8203;15060](https://github.com/gohugoio/hugo/issues/15060) - tpl/tplimpl: Make template name lookup case-insensitive [`e46d37a`](https://github.com/gohugoio/hugo/commit/e46d37a9) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15057](https://github.com/gohugoio/hugo/issues/15057) - hugolib: Return error from .Render when template not found [`fe06735`](https://github.com/gohugoio/hugo/commit/fe067352) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15052](https://github.com/gohugoio/hugo/issues/15052) - markup/pandoc: Add citation support [`128fb17`](https://github.com/gohugoio/hugo/commit/128fb17c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15062](https://github.com/gohugoio/hugo/issues/15062) ##### Dependency Updates - build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2 [`921db7b`](https://github.com/gohugoio/hugo/commit/921db7b5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.45.0 to 0.47.0 [`786ce71`](https://github.com/gohugoio/hugo/commit/786ce71e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.42.0 to 0.43.0 [`5ad2846`](https://github.com/gohugoio/hugo/commit/5ad28461) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.55.0 to 0.56.0 [`36ad9f5`](https://github.com/gohugoio/hugo/commit/36ad9f58) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.4.2 to 2.4.3 [`7c0a0bc`](https://github.com/gohugoio/hugo/commit/7c0a0bc9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.139.0 to 0.140.0 [`a879ebf`](https://github.com/gohugoio/hugo/commit/a879ebfa) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.36.0 to 0.37.0 [`332d5ec`](https://github.com/gohugoio/hugo/commit/332d5ec8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.3.1 to 2.4.2 [`212cc11`](https://github.com/gohugoio/hugo/commit/212cc11a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/evanw/esbuild v0.28.0 => v0.28.1 [`884439b`](https://github.com/gohugoio/hugo/commit/884439b9) [@&#8203;bep](https://github.com/bep) [#&#8203;15033](https://github.com/gohugoio/hugo/issues/15033) - deps: Add Chroma dark/light mode support [`790a8aa`](https://github.com/gohugoio/hugo/commit/790a8aa4) [@&#8203;bep](https://github.com/bep) [#&#8203;15017](https://github.com/gohugoio/hugo/issues/15017) ### [`v0.163.3`](https://github.com/gohugoio/hugo/releases/tag/v0.163.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.163.2...v0.163.3) ##### What's Changed - markup/highlight: Escape lang in default code block rendering [`ce1a7e0`](https://github.com/gohugoio/hugo/commit/ce1a7e0b) [@&#8203;bep](https://github.com/bep) thanks to [@&#8203;k0ngj1](https://github.com/k0ngj1) for reporting this issue. - parser/pageparser: Preserve non-ASCII whitespace after e.g. summary divider [`70a9068`](https://github.com/gohugoio/hugo/commit/70a9068a) [@&#8203;bep](https://github.com/bep) - resources: Support babel/postcss config variants [`9d66d51`](https://github.com/gohugoio/hugo/commit/9d66d513) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15039](https://github.com/gohugoio/hugo/issues/15039) [#&#8203;15040](https://github.com/gohugoio/hugo/issues/15040) [#&#8203;15043](https://github.com/gohugoio/hugo/issues/15043) - hugolib: Fix page/section name collision regression [`f013346`](https://github.com/gohugoio/hugo/commit/f0133466) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15046](https://github.com/gohugoio/hugo/issues/15046) ### [`v0.163.2`](https://github.com/gohugoio/hugo/releases/tag/v0.163.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.163.1...v0.163.2) ##### What's Changed - Continue resolving on ERR\_ACCESS\_DENIED in Node's resolver [`134674f`](https://github.com/gohugoio/hugo/commit/134674f0) [@&#8203;bep](https://github.com/bep) [#&#8203;15041](https://github.com/gohugoio/hugo/issues/15041) - markup: Standardize behavior when external converters are missing [`147f605`](https://github.com/gohugoio/hugo/commit/147f605f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14222](https://github.com/gohugoio/hugo/issues/14222) ### [`v0.163.1`](https://github.com/gohugoio/hugo/releases/tag/v0.163.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.163.0...v0.163.1) The majority of the fixes in this release are security related (including the upstream fix in [`93c8c7d`](https://github.com/gohugoio/hugo/commit/93c8c7d3) (golang.org/x/image)). Thanks to [@&#8203;vnth4nhnt](https://github.com/vnth4nhnt) for finding the issues fixed in [`a00b5c7`](https://github.com/gohugoio/hugo/commit/a00b5c72) and [`cf9c8f9`](https://github.com/gohugoio/hugo/commit/cf9c8f93) (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](https://gohugo.io/about/security/) as their baseline. Just take a look at Go's recent [security issue list](https://github.com/golang/go/issues?q=is%3Aissue%20label%3ASecurity) to see a demonstration of this. ##### What's Changed - build(deps): bump golang.org/x/image from 0.41.0 to 0.42.0 [`93c8c7d`](https://github.com/gohugoio/hugo/commit/93c8c7d3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - Fix multi --renderSegments merge behavior [`95e5e9f`](https://github.com/gohugoio/hugo/commit/95e5e9f4) [@&#8203;bep](https://github.com/bep) [#&#8203;15024](https://github.com/gohugoio/hugo/issues/15024) - security: Normalize integer IPv4 host encodings in http.urls check [`a00b5c7`](https://github.com/gohugoio/hugo/commit/a00b5c72) [@&#8203;bep](https://github.com/bep) - Drop symlinks in os.ReadDir, os.ReadFile, os.Stat and os.FileExists [`cf9c8f9`](https://github.com/gohugoio/hugo/commit/cf9c8f93) [@&#8203;bep](https://github.com/bep) [#&#8203;15019](https://github.com/gohugoio/hugo/issues/15019) - commands: Fix convert command [`2602796`](https://github.com/gohugoio/hugo/commit/2602796c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;15012](https://github.com/gohugoio/hugo/issues/15012) ### [`v0.163.0`](https://github.com/gohugoio/hugo/releases/tag/v0.163.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.162.1...v0.163.0) The main topic in this release is improvements to the AVIF image handling that we introduced in `v0.162.0`. See [the docs](https://gohugo.io/configuration/imaging/#avif) 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 - resources/jsconfig: Remove deprecated baseUrl setting [`ff2903a`](https://github.com/gohugoio/hugo/commit/ff2903a9) [@&#8203;bep](https://github.com/bep) [#&#8203;14991](https://github.com/gohugoio/hugo/issues/14991) [#&#8203;14996](https://github.com/gohugoio/hugo/issues/14996) - all: Adjust tests for deprecated link and image render hook settings [`ca68936`](https://github.com/gohugoio/hugo/commit/ca68936d) [@&#8203;jmooring](https://github.com/jmooring) - all: Run go fix ./... [`781fabf`](https://github.com/gohugoio/hugo/commit/781fabf4) [@&#8203;bep](https://github.com/bep) - pagesfromdata: Use relative path for content adapter template metrics [`1d018ef`](https://github.com/gohugoio/hugo/commit/1d018ef8) [@&#8203;anupamojha-eng](https://github.com/anupamojha-eng) [#&#8203;14999](https://github.com/gohugoio/hugo/issues/14999) - ci: Re-add macos-latest to the test matrix [`121bc6c`](https://github.com/gohugoio/hugo/commit/121bc6ce) [@&#8203;bep](https://github.com/bep) - images: Deprecate Imaging.Compression and move it down to webp and avif configs [`cf18b82`](https://github.com/gohugoio/hugo/commit/cf18b827) [@&#8203;bep](https://github.com/bep) [#&#8203;14998](https://github.com/gohugoio/hugo/issues/14998) - Only support the latest Go version [`98ad9b3`](https://github.com/gohugoio/hugo/commit/98ad9b3c) [@&#8203;bep](https://github.com/bep) [#&#8203;14997](https://github.com/gohugoio/hugo/issues/14997) - page: Add IsBranch and deprecate IsNode [`b89e7fe`](https://github.com/gohugoio/hugo/commit/b89e7fe6) [@&#8203;bep](https://github.com/bep) [#&#8203;11574](https://github.com/gohugoio/hugo/issues/11574) - images: Force cache invalidation for AVIF target [`e8fefc8`](https://github.com/gohugoio/hugo/commit/e8fefc83) [@&#8203;bep](https://github.com/bep) [#&#8203;14990](https://github.com/gohugoio/hugo/issues/14990) - images: Add a per-format AVIF hint setting [`a043d3e`](https://github.com/gohugoio/hugo/commit/a043d3ec) [@&#8203;bep](https://github.com/bep) [#&#8203;14992](https://github.com/gohugoio/hugo/issues/14992) - images: Make AVIF chroma subsampling content-aware via the hint [`341f575`](https://github.com/gohugoio/hugo/commit/341f575d) [@&#8203;bep](https://github.com/bep) [#&#8203;14987](https://github.com/gohugoio/hugo/issues/14987) - Cap AVIF lossy quality at 99 [`248241b`](https://github.com/gohugoio/hugo/commit/248241b6) [@&#8203;bep](https://github.com/bep) [#&#8203;14981](https://github.com/gohugoio/hugo/issues/14981) - config: Deprecate the glogal imaging quality setting [`4e47d95`](https://github.com/gohugoio/hugo/commit/4e47d95d) [@&#8203;bep](https://github.com/bep) [#&#8203;14979](https://github.com/gohugoio/hugo/issues/14979) - images: Make 60 the default quality for AVIF [`03b4b54`](https://github.com/gohugoio/hugo/commit/03b4b542) [@&#8203;bep](https://github.com/bep) [#&#8203;14979](https://github.com/gohugoio/hugo/issues/14979) - livereload: Disconnect from websocket server on pageswap [`79be053`](https://github.com/gohugoio/hugo/commit/79be0532) [@&#8203;bep](https://github.com/bep) [#&#8203;14983](https://github.com/gohugoio/hugo/issues/14983) - tpl/tplimpl/embedded: Prevent leading newline in sitemap template [`0f44046`](https://github.com/gohugoio/hugo/commit/0f440460) [@&#8203;bep](https://github.com/bep) [#&#8203;14977](https://github.com/gohugoio/hugo/issues/14977) - images: Recover from memory alloc errors in WASM image processors [`4e17421`](https://github.com/gohugoio/hugo/commit/4e17421e) [@&#8203;bep](https://github.com/bep) [#&#8203;14985](https://github.com/gohugoio/hugo/issues/14985) - images: Add quality setting per image format [`b01ecd4`](https://github.com/gohugoio/hugo/commit/b01ecd4c) [@&#8203;bep](https://github.com/bep) [#&#8203;14957](https://github.com/gohugoio/hugo/issues/14957) - misc: Remove duplicate words in comments [`45c00b7`](https://github.com/gohugoio/hugo/commit/45c00b7c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14936](https://github.com/gohugoio/hugo/issues/14936) [#&#8203;14950](https://github.com/gohugoio/hugo/issues/14950) [#&#8203;14965](https://github.com/gohugoio/hugo/issues/14965) - Add some PNG to AVIF golden test cases [`28d882a`](https://github.com/gohugoio/hugo/commit/28d882ab) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/bits-and-blooms/bitset [`0d29fc8`](https://github.com/gohugoio/hugo/commit/0d29fc81) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tetratelabs/wazero [`bb57404`](https://github.com/gohugoio/hugo/commit/bb57404f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/rogpeppe/go-internal from 1.14.1 to 1.15.0 [`7d1b1fb`](https://github.com/gohugoio/hugo/commit/7d1b1fb3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.138.0 to 0.139.0 [`77a1147`](https://github.com/gohugoio/hugo/commit/77a11470) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.162.1`](https://github.com/gohugoio/hugo/releases/tag/v0.162.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.162.0...v0.162.1) ##### What's Changed - modules/npm: Fix false stale warning after npm pack [`59f35cd`](https://github.com/gohugoio/hugo/commit/59f35cd9) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14959](https://github.com/gohugoio/hugo/issues/14959) - Revert "tpl/collections: Make dict return nil when no values are provided" [`c270975`](https://github.com/gohugoio/hugo/commit/c2709750) [@&#8203;bep](https://github.com/bep) [#&#8203;14958](https://github.com/gohugoio/hugo/issues/14958) - tpl/time: Fix locale-specific month abbreviations [`ea8b48a`](https://github.com/gohugoio/hugo/commit/ea8b48af) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14948](https://github.com/gohugoio/hugo/issues/14948) ### [`v0.162.0`](https://github.com/gohugoio/hugo/releases/tag/v0.162.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.161.1...v0.162.0) The notable new feature in this release is support for [AVIF images](https://gohugo.io/configuration/imaging/#avif-images) (both encoder and decoder). There's a [demo site](https://github.com/bep/hdrsdr.com) 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](https://github.com/gohugoio/hugo/commit/e41a06447d)). 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](https://github.com/gohugoio/hugo/commit/86fbb0f7a8)). - **Reject symlinked entries in `resources.Get`** ([f8b5fa0](https://github.com/gohugoio/hugo/commit/f8b5fa09a6)). **We will update this section later with links to CVEs where applicable.** ##### All changes - hugolib: Fix Page.GitInfo for modules with go.mod in a repo subdirectory [`df54219`](https://github.com/gohugoio/hugo/commit/df542191) [@&#8203;bep](https://github.com/bep) [#&#8203;14942](https://github.com/gohugoio/hugo/issues/14942) - Fix typo in CONTRIBUTING.md [`4bc7cae`](https://github.com/gohugoio/hugo/commit/4bc7caea) [@&#8203;bep](https://github.com/bep) - resources: Fix the :counter placeholder [`5d51b82`](https://github.com/gohugoio/hugo/commit/5d51b82a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14921](https://github.com/gohugoio/hugo/issues/14921) - commands: Fix import from Jekyll [`81d7762`](https://github.com/gohugoio/hugo/commit/81d77620) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14795](https://github.com/gohugoio/hugo/issues/14795) [#&#8203;14906](https://github.com/gohugoio/hugo/issues/14906) - Fix prevention of direct symlink reads in resources.Get [`f8b5fa0`](https://github.com/gohugoio/hugo/commit/f8b5fa09) [@&#8203;bep](https://github.com/bep) - commands: Fix github-dark chromastyles [`88d838a`](https://github.com/gohugoio/hugo/commit/88d838a9) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;14831](https://github.com/gohugoio/hugo/issues/14831) - Disallow HTML content by default [`e41a064`](https://github.com/gohugoio/hugo/commit/e41a0644) [@&#8203;bep](https://github.com/bep) - Add image processing support for AVIF [`90d9f81`](https://github.com/gohugoio/hugo/commit/90d9f812) [@&#8203;bep](https://github.com/bep) [#&#8203;7837](https://github.com/gohugoio/hugo/issues/7837) - config: Preserve intentionally empty maps [`80e6084`](https://github.com/gohugoio/hugo/commit/80e60847) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14944](https://github.com/gohugoio/hugo/issues/14944) - hugolib: Merge existing hugo\_stats.json when renderSegments is set [`aeb9a5c`](https://github.com/gohugoio/hugo/commit/aeb9a5cc) [@&#8203;bep](https://github.com/bep) [#&#8203;14939](https://github.com/gohugoio/hugo/issues/14939) - all: Replace RWMutex struct caches with ConcurrentMap [`c4bbc28`](https://github.com/gohugoio/hugo/commit/c4bbc280) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Consolidate and improve embedded template integration tests [`d8c7021`](https://github.com/gohugoio/hugo/commit/d8c70218) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14932](https://github.com/gohugoio/hugo/issues/14932) - parser: Drop empty sub maps from hugo config output [`ee4f1ac`](https://github.com/gohugoio/hugo/commit/ee4f1acd) [@&#8203;bep](https://github.com/bep) [#&#8203;14855](https://github.com/gohugoio/hugo/issues/14855) - markup/highlight: Allow overriding type and code via options [`b613365`](https://github.com/gohugoio/hugo/commit/b6133657) [@&#8203;bep](https://github.com/bep) [#&#8203;11872](https://github.com/gohugoio/hugo/issues/11872) - Update AI assistance disclosure requirements [`d2c821b`](https://github.com/gohugoio/hugo/commit/d2c821b5) [@&#8203;bep](https://github.com/bep) - hugolib: Use AllTranslated in IsTranslated [`4ed7600`](https://github.com/gohugoio/hugo/commit/4ed7600f) [@&#8203;bep](https://github.com/bep) - tpl: Simplify sitemap template [`cbe4339`](https://github.com/gohugoio/hugo/commit/cbe4339a) [@&#8203;bep](https://github.com/bep) [#&#8203;14912](https://github.com/gohugoio/hugo/issues/14912) - tpl: Use AllTranslations in sitemap template [`6475d30`](https://github.com/gohugoio/hugo/commit/6475d308) [@&#8203;bep](https://github.com/bep) [#&#8203;14912](https://github.com/gohugoio/hugo/issues/14912) [#&#8203;14917](https://github.com/gohugoio/hugo/issues/14917) - tpl/collections: Make dict return nil when no values are provided [`67aede4`](https://github.com/gohugoio/hugo/commit/67aede43) [@&#8203;bep](https://github.com/bep) - Sync Go template package to 1.26.3 [`87f194b`](https://github.com/gohugoio/hugo/commit/87f194b2) [@&#8203;bep](https://github.com/bep) [#&#8203;14897](https://github.com/gohugoio/hugo/issues/14897) - Upgrade to Go 1.26.3 [`d81e3c2`](https://github.com/gohugoio/hugo/commit/d81e3c29) [@&#8203;bep](https://github.com/bep) [#&#8203;14897](https://github.com/gohugoio/hugo/issues/14897) - ci: Check embedded template formatting with gotmplfmt [`7c65a4d`](https://github.com/gohugoio/hugo/commit/7c65a4db) [@&#8203;bep](https://github.com/bep) - tpl: Run gotmplfmt -w . [`d31a927`](https://github.com/gohugoio/hugo/commit/d31a9275) [@&#8203;bep](https://github.com/bep) - markup/goldmark/codeblocks: Always split Chroma options into .Options [`c36608c`](https://github.com/gohugoio/hugo/commit/c36608c5) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14909](https://github.com/gohugoio/hugo/issues/14909) - hugolib: Allow empty params front matter [`2f361a8`](https://github.com/gohugoio/hugo/commit/2f361a8e) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;14886](https://github.com/gohugoio/hugo/issues/14886) - common/hmaps: Merge slice-valued module config into site config [`5559263`](https://github.com/gohugoio/hugo/commit/55592633) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13869](https://github.com/gohugoio/hugo/issues/13869) - tpl: Use GetMatch for both local and global image resources [`656fc04`](https://github.com/gohugoio/hugo/commit/656fc040) [@&#8203;bep](https://github.com/bep) [#&#8203;14062](https://github.com/gohugoio/hugo/issues/14062) - Revert "markup/tableofcontents: Skip empty TOC levels" [`a20cb5b`](https://github.com/gohugoio/hugo/commit/a20cb5b1) [@&#8203;bep](https://github.com/bep) [#&#8203;14898](https://github.com/gohugoio/hugo/issues/14898) - tpl/templates: Reject Defer inside partialCached [`4d775cb`](https://github.com/gohugoio/hugo/commit/4d775cbe) [@&#8203;bep](https://github.com/bep) [#&#8203;13492](https://github.com/gohugoio/hugo/issues/13492) - common/hexec: Make NODE\_PATH a fallback for ESM bare imports [`ae7bf74`](https://github.com/gohugoio/hugo/commit/ae7bf74b) [@&#8203;bep](https://github.com/bep) [#&#8203;13987](https://github.com/gohugoio/hugo/issues/13987) - config: Allow repeating the root key in /config files [`ba5d812`](https://github.com/gohugoio/hugo/commit/ba5d8126) [@&#8203;bep](https://github.com/bep) [#&#8203;12899](https://github.com/gohugoio/hugo/issues/12899) [#&#8203;14882](https://github.com/gohugoio/hugo/issues/14882) - Revise test naming guidelines in AGENTS.md [`be4a0df`](https://github.com/gohugoio/hugo/commit/be4a0df3) [@&#8203;bep](https://github.com/bep) - Update AGENTS.md [`e4cf565`](https://github.com/gohugoio/hugo/commit/e4cf565c) [@&#8203;bep](https://github.com/bep) - js: Return error for missing batch imports [`9e64953`](https://github.com/gohugoio/hugo/commit/9e649533) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;13737](https://github.com/gohugoio/hugo/issues/13737) - resources/images: Keep smart crop target size [`f0cfc28`](https://github.com/gohugoio/hugo/commit/f0cfc28c) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;13688](https://github.com/gohugoio/hugo/issues/13688) - testing: Use synctest where relevant [`16e854a`](https://github.com/gohugoio/hugo/commit/16e854a4) [@&#8203;bep](https://github.com/bep) - security: Validate redirects against security.http.urls [`86fbb0f`](https://github.com/gohugoio/hugo/commit/86fbb0f7) [@&#8203;bep](https://github.com/bep) [#&#8203;14871](https://github.com/gohugoio/hugo/issues/14871) - markup/tableofcontents: Skip empty TOC levels [`7d4af7a`](https://github.com/gohugoio/hugo/commit/7d4af7a1) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;7128](https://github.com/gohugoio/hugo/issues/7128) - Fall back to hugo.buildDate in hugo.BuildDate() in non-vcs builds [`28147cb`](https://github.com/gohugoio/hugo/commit/28147cb0) [@&#8203;bep](https://github.com/bep) [#&#8203;14862](https://github.com/gohugoio/hugo/issues/14862) - css: Make css.Build's file-loader URLs absolute to web context root [`e51e761`](https://github.com/gohugoio/hugo/commit/e51e761d) [@&#8203;bep](https://github.com/bep) [#&#8203;14849](https://github.com/gohugoio/hugo/issues/14849) - hugolib: Don't warn about lang/kind/path coming from cascade.params [`7011239`](https://github.com/gohugoio/hugo/commit/70112392) [@&#8203;bep](https://github.com/bep) [#&#8203;14848](https://github.com/gohugoio/hugo/issues/14848) - markup/goldmark: Unwrap inner HTML for plain code blocks [`694906f`](https://github.com/gohugoio/hugo/commit/694906f6) [@&#8203;cyphercodes](https://github.com/cyphercodes) [#&#8203;14820](https://github.com/gohugoio/hugo/issues/14820) - tpl/tplimpl: Extend page image lookup to include global resources [`d27b9c0`](https://github.com/gohugoio/hugo/commit/d27b9c06) [@&#8203;ogulcanaydogan](https://github.com/ogulcanaydogan) [#&#8203;14062](https://github.com/gohugoio/hugo/issues/14062) - security: Allow hostnames starting with digits in default http.urls [`62cef36`](https://github.com/gohugoio/hugo/commit/62cef367) [@&#8203;bep](https://github.com/bep) [#&#8203;14837](https://github.com/gohugoio/hugo/issues/14837) - commands: Improve description of command flags [`ff22c62`](https://github.com/gohugoio/hugo/commit/ff22c62a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14817](https://github.com/gohugoio/hugo/issues/14817) - build(deps): bump golang.org/x/net from 0.54.0 to 0.55.0 [`4f444c8`](https://github.com/gohugoio/hugo/commit/4f444c81) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.40.0 to 0.41.0 [`fe6c726`](https://github.com/gohugoio/hugo/commit/fe6c7265) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.137.0 to 0.138.0 [`6a2a038`](https://github.com/gohugoio/hugo/commit/6a2a0380) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2 [`cf1de59`](https://github.com/gohugoio/hugo/commit/cf1de598) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.39.0 to 0.40.0 [`97f990c`](https://github.com/gohugoio/hugo/commit/97f990cc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.44.0 to 0.45.0 [`b99634e`](https://github.com/gohugoio/hugo/commit/b99634e2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 [`fdd977e`](https://github.com/gohugoio/hugo/commit/fdd977e9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.3.0 to 2.3.1 [`123018d`](https://github.com/gohugoio/hugo/commit/123018de) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade to Chroma v2.24.1 [`b88fa8c`](https://github.com/gohugoio/hugo/commit/b88fa8cc) [@&#8203;bep](https://github.com/bep) [#&#8203;14839](https://github.com/gohugoio/hugo/issues/14839) ### [`v0.161.1`](https://github.com/gohugoio/hugo/releases/tag/v0.161.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.161.0...v0.161.1) ##### What's Changed - resources: Honor Retry-After header in resources.GetRemote retries [`c4eba92`](https://github.com/gohugoio/hugo/commit/c4eba928) [@&#8203;bep](https://github.com/bep) [#&#8203;14828](https://github.com/gohugoio/hugo/issues/14828) - warpc: Move to parson.c in <https://github.com/kgabis/parson> [`8b40a96`](https://github.com/gohugoio/hugo/commit/8b40a96b) [@&#8203;bep](https://github.com/bep) [#&#8203;14823](https://github.com/gohugoio/hugo/issues/14823) - config/security: Add AllowChildProcess to security.node.permissions [`d65af84`](https://github.com/gohugoio/hugo/commit/d65af84d) [@&#8203;bep](https://github.com/bep) [#&#8203;14824](https://github.com/gohugoio/hugo/issues/14824) - config/security: Restrict default http.urls "@&#8203;" deny to userinfo [`454450a`](https://github.com/gohugoio/hugo/commit/454450a6) [@&#8203;bep](https://github.com/bep) [#&#8203;14825](https://github.com/gohugoio/hugo/issues/14825) ### [`v0.161.0`](https://github.com/gohugoio/hugo/releases/tag/v0.161.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.160.1...v0.161.0) 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](https://gohugo.io/configuration/security/). 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](https://github.com/tailwindlabs/tailwindcss/releases/latest) is no longer supported - We have made the defaults in [security.http.urls](https://gohugo.io/configuration/security/#httpurls) 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`: ```toml [params.style] primary = "#&#8203;000000" background = "#ffffff" [params.style.dark] primary = "#ffffff" background = "#&#8203;000000" ``` And in the stylesheet: ```css @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](https://gohugo.io/configuration/cascade/#target) matchers as in the `cascade` config, meaning you can now do: ```yaml 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 - langs/i18n: Fix translation lookup when using language variants [`72b85d5`](https://github.com/gohugoio/hugo/commit/72b85d5f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;7982](https://github.com/gohugoio/hugo/issues/7982) - create: Fix non-deterministic conflict detection in hugo new content [`6436deb`](https://github.com/gohugoio/hugo/commit/6436deb3) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12602](https://github.com/gohugoio/hugo/issues/12602) [#&#8203;12786](https://github.com/gohugoio/hugo/issues/12786) [#&#8203;14112](https://github.com/gohugoio/hugo/issues/14112) [#&#8203;14769](https://github.com/gohugoio/hugo/issues/14769) - commands: Fix environment isolation for configuration settings [`1eea9fb`](https://github.com/gohugoio/hugo/commit/1eea9fba) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14763](https://github.com/gohugoio/hugo/issues/14763) - Fix filename dimension identifiers (*role\_X*, *version\_X*) to replace mount config [`8d6145f`](https://github.com/gohugoio/hugo/commit/8d6145f3) [@&#8203;bep](https://github.com/bep) [#&#8203;14756](https://github.com/gohugoio/hugo/issues/14756) - Fix it so we never auto-fallback to page resources in other roles/versions [`9747724`](https://github.com/gohugoio/hugo/commit/97477242) [@&#8203;bep](https://github.com/bep) [#&#8203;14749](https://github.com/gohugoio/hugo/issues/14749) [#&#8203;14752](https://github.com/gohugoio/hugo/issues/14752) - css: Support nested hugo:vars/<name> imports [`7622dd8`](https://github.com/gohugoio/hugo/commit/7622dd86) [@&#8203;bep](https://github.com/bep) [#&#8203;14705](https://github.com/gohugoio/hugo/issues/14705) - github: Update GitHub actions versions [`0814059`](https://github.com/gohugoio/hugo/commit/0814059b) [@&#8203;bep](https://github.com/bep) [#&#8203;14810](https://github.com/gohugoio/hugo/issues/14810) - hugolib: Do not render aliases if the page is not rendered [`8920d56`](https://github.com/gohugoio/hugo/commit/8920d56e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14807](https://github.com/gohugoio/hugo/issues/14807) - langs/i18n: Improve default content language fallback [`633cc77`](https://github.com/gohugoio/hugo/commit/633cc772) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14243](https://github.com/gohugoio/hugo/issues/14243) - helpers: Remove unused code [`4c40c6d`](https://github.com/gohugoio/hugo/commit/4c40c6d5) [@&#8203;bep](https://github.com/bep) - common/constants: Remove unused consts [`d2594db`](https://github.com/gohugoio/hugo/commit/d2594db6) [@&#8203;bep](https://github.com/bep) - common/paths: Remove unused code [`ab2de51`](https://github.com/gohugoio/hugo/commit/ab2de51e) [@&#8203;bep](https://github.com/bep) - tests: Update Ruby setup action to v1.305.0 [`75f6183`](https://github.com/gohugoio/hugo/commit/75f61832) [@&#8203;jmooring](https://github.com/jmooring) - langs: Use Language.Locale as primary localization key [`1b7495b`](https://github.com/gohugoio/hugo/commit/1b7495bc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9109](https://github.com/gohugoio/hugo/issues/9109) - config/security: Add "! " negation to Whitelist, harden default http.urls [`79f030b`](https://github.com/gohugoio/hugo/commit/79f030be) [@&#8203;bep](https://github.com/bep) [#&#8203;14792](https://github.com/gohugoio/hugo/issues/14792) - Harden Node tool execution with --permission flag [`a54c398`](https://github.com/gohugoio/hugo/commit/a54c398b) [@&#8203;bep](https://github.com/bep) [#&#8203;7287](https://github.com/gohugoio/hugo/issues/7287) - tpl/collections: Honor the Eqer interface in where comparisons [`f5fce93`](https://github.com/gohugoio/hugo/commit/f5fce935) [@&#8203;bep](https://github.com/bep) [#&#8203;14777](https://github.com/gohugoio/hugo/issues/14777) - modules: Ignore non-require blocks in go.mod rewrite [`4169c1f`](https://github.com/gohugoio/hugo/commit/4169c1f7) [@&#8203;bep](https://github.com/bep) [#&#8203;14783](https://github.com/gohugoio/hugo/issues/14783) - Replace the concurrent map with an identical upstream version [`7574e35`](https://github.com/gohugoio/hugo/commit/7574e35b) [@&#8203;bep](https://github.com/bep) - Add slice-based permalinks config with PageMatcher target [`017a7cd`](https://github.com/gohugoio/hugo/commit/017a7cd6) [@&#8203;bep](https://github.com/bep) [#&#8203;14744](https://github.com/gohugoio/hugo/issues/14744) - commands: Add missing import [`e3413d9`](https://github.com/gohugoio/hugo/commit/e3413d92) [@&#8203;bep](https://github.com/bep) - Revert "common/hugo: Deprecate extended and extended\_withdeploy editions" [`b01cc14`](https://github.com/gohugoio/hugo/commit/b01cc147) [@&#8203;bep](https://github.com/bep) [#&#8203;14771](https://github.com/gohugoio/hugo/issues/14771) - Adjust the SECURITY.md slightly [`8ee19ff`](https://github.com/gohugoio/hugo/commit/8ee19ff9) [@&#8203;bep](https://github.com/bep) - resources/page: Add passing test for Issue [#&#8203;14325](https://github.com/gohugoio/hugo/issues/14325) [`0d58e42`](https://github.com/gohugoio/hugo/commit/0d58e428) [@&#8203;jmooring](https://github.com/jmooring) - Add a more flexible filename identifier scheme that also allows setting roles and versions ([#&#8203;14754](https://github.com/gohugoio/hugo/issues/14754)) [`ce2a156`](https://github.com/gohugoio/hugo/commit/ce2a156a) [@&#8203;bep](https://github.com/bep) [#&#8203;14750](https://github.com/gohugoio/hugo/issues/14750) - common/hugo: Deprecate extended and extended\_withdeploy editions [`a17bdbc`](https://github.com/gohugoio/hugo/commit/a17bdbc5) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14696](https://github.com/gohugoio/hugo/issues/14696) - parser/pageparser: Add a parser fuzz test [`8f94d65`](https://github.com/gohugoio/hugo/commit/8f94d65c) [@&#8203;bep](https://github.com/bep) - Replace deprecated .Site.Sites/.Page.Sites with hugo.Sites intests [`90d8bf3`](https://github.com/gohugoio/hugo/commit/90d8bf34) [@&#8203;bep](https://github.com/bep) - agents: Add a note about having the issue ID in test names [`bbb42b5`](https://github.com/gohugoio/hugo/commit/bbb42b5a) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/getkin/kin-openapi from 0.135.0 to 0.137.0 [`d4ae662`](https://github.com/gohugoio/hugo/commit/d4ae662d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/mattn/go-isatty from 0.0.21 to 0.0.22 [`9ede5fb`](https://github.com/gohugoio/hugo/commit/9ede5fb9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.12 to 2.24.13 [`833a878`](https://github.com/gohugoio/hugo/commit/833a878e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/magefile/mage from 1.17.1 to 1.17.2 [`4c03129`](https://github.com/gohugoio/hugo/commit/4c03129f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/bep/imagemeta v0.17.1 => v0.17.2 [`080970b`](https://github.com/gohugoio/hugo/commit/080970bc) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront ([#&#8203;14789](https://github.com/gohugoio/hugo/issues/14789)) [`896bc89`](https://github.com/gohugoio/hugo/commit/896bc89a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/mattn/go-isatty from 0.0.20 to 0.0.21 ([#&#8203;14788](https://github.com/gohugoio/hugo/issues/14788)) [`100dde5`](https://github.com/gohugoio/hugo/commit/100dde53) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/mclib ([#&#8203;14787](https://github.com/gohugoio/hugo/issues/14787)) [`bdebb79`](https://github.com/gohugoio/hugo/commit/bdebb797) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.267.0 to 0.276.0 [`52123ae`](https://github.com/gohugoio/hugo/commit/52123ae2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.41.5 to 1.41.6 [`38b8afd`](https://github.com/gohugoio/hugo/commit/38b8afdc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.134.0 to 0.135.0 ([#&#8203;14781](https://github.com/gohugoio/hugo/issues/14781)) [`9276660`](https://github.com/gohugoio/hugo/commit/92766600) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/goportabletext from 0.1.0 to 0.2.0 ([#&#8203;14779](https://github.com/gohugoio/hugo/issues/14779)) [`790f408`](https://github.com/gohugoio/hugo/commit/790f4084) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.38.0 to 0.39.0 ([#&#8203;14780](https://github.com/gohugoio/hugo/issues/14780)) [`de6955b`](https://github.com/gohugoio/hugo/commit/de6955ba) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/bep/imagemeta v0.17.0 => v0.17.1 ([#&#8203;14775](https://github.com/gohugoio/hugo/issues/14775)) [`a77bd52`](https://github.com/gohugoio/hugo/commit/a77bd527) [@&#8203;bep](https://github.com/bep) [#&#8203;14758](https://github.com/gohugoio/hugo/issues/14758) - build(deps): bump golang.org/x/tools from 0.43.0 to 0.44.0 [`547ab29`](https://github.com/gohugoio/hugo/commit/547ab29c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.27.4 to 0.28.0 [`9a5c7e0`](https://github.com/gohugoio/hugo/commit/9a5c7e0d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.41.1 to 1.41.5 [`6613b08`](https://github.com/gohugoio/hugo/commit/6613b08e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.3.0 [`582c26e`](https://github.com/gohugoio/hugo/commit/582c26ef) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.11 to 2.24.12 [`a4f2a8a`](https://github.com/gohugoio/hugo/commit/a4f2a8a5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.160.1`](https://github.com/gohugoio/hugo/releases/tag/v0.160.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.160.0...v0.160.1) ##### What's Changed - Fix panic when passthrough elements are used in headings [`8b00030`](https://github.com/gohugoio/hugo/commit/8b00030b) [@&#8203;bep](https://github.com/bep) [#&#8203;14677](https://github.com/gohugoio/hugo/issues/14677) - Fix panic on edit of legacy mapped template names that's also a valid path in the new setup [`c485516`](https://github.com/gohugoio/hugo/commit/c4855167) [@&#8203;bep](https://github.com/bep) [#&#8203;14740](https://github.com/gohugoio/hugo/issues/14740) - Fix RenderShortcodes leaking context markers when indented [`161d0d4`](https://github.com/gohugoio/hugo/commit/161d0d47) [@&#8203;bep](https://github.com/bep) [#&#8203;12457](https://github.com/gohugoio/hugo/issues/12457) - Strip nested page context markers from standalone RenderShortcodes [`45e4596`](https://github.com/gohugoio/hugo/commit/45e45966) [@&#8203;bep](https://github.com/bep) [#&#8203;14732](https://github.com/gohugoio/hugo/issues/14732) - Rename deprecated cascade.\_target to cascade.target in tests [`58927aa`](https://github.com/gohugoio/hugo/commit/58927aa1) [@&#8203;bep](https://github.com/bep) - Fix auto-creation of root sections in multilingual sites [`ce009e3`](https://github.com/gohugoio/hugo/commit/ce009e3a) [@&#8203;bep](https://github.com/bep) [#&#8203;14681](https://github.com/gohugoio/hugo/issues/14681) - readme: Fix links [`0755872`](https://github.com/gohugoio/hugo/commit/07558724) [@&#8203;chicks-net](https://github.com/chicks-net) ### [`v0.160.0`](https://github.com/gohugoio/hugo/releases/tag/v0.160.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.159.2...v0.160.0) Now you can inject [CSS vars](https://gohugo.io/functions/css/build/#vars), e.g. from the configuration, into your stylesheets when building with [css.Build](https://gohugo.io/functions/css/build/). Also, now all the render hooks has a [.Position](https://gohugo.io/render-hooks/links/#position) method, now also more accurate and effective. ##### Bug fixes - Fix some recently introduced Position issues [`4e91e14`](https://github.com/gohugoio/hugo/commit/4e91e14c) [@&#8203;bep](https://github.com/bep) [#&#8203;14710](https://github.com/gohugoio/hugo/issues/14710) - markup/goldmark: Fix double-escaping of ampersands in link URLs [`dc9b51d`](https://github.com/gohugoio/hugo/commit/dc9b51d2) [@&#8203;bep](https://github.com/bep) [#&#8203;14715](https://github.com/gohugoio/hugo/issues/14715) - tpl: Fix stray quotes from partial decorator in script context [`43aad71`](https://github.com/gohugoio/hugo/commit/43aad711) [@&#8203;bep](https://github.com/bep) [#&#8203;14711](https://github.com/gohugoio/hugo/issues/14711) ##### Improvements - all: Replace NewIntegrationTestBuilder with Test/TestE/TestRunning [`481baa0`](https://github.com/gohugoio/hugo/commit/481baa08) [@&#8203;bep](https://github.com/bep) - tpl/css: Support [@&#8203;import](https://github.com/import) "hugo:vars" for CSS custom properties in css.Build [`5d09b5e`](https://github.com/gohugoio/hugo/commit/5d09b5e3) [@&#8203;bep](https://github.com/bep) [#&#8203;14699](https://github.com/gohugoio/hugo/issues/14699) - Improve and extend .Position handling in Goldmark render hooks [`303e443`](https://github.com/gohugoio/hugo/commit/303e443e) [@&#8203;bep](https://github.com/bep) [#&#8203;14663](https://github.com/gohugoio/hugo/issues/14663) - markup/goldmark: Clean up test [`638262c`](https://github.com/gohugoio/hugo/commit/638262ce) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/magefile/mage from 1.16.1 to 1.17.1 [`bf6e35a`](https://github.com/gohugoio/hugo/commit/bf6e35a7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.3 to 4.1.4 [`0eda24e`](https://github.com/gohugoio/hugo/commit/0eda24e6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.37.0 to 0.38.0 [`beb57a6`](https://github.com/gohugoio/hugo/commit/beb57a68) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - readme: Revise edition descriptions and installation instructions [`9f1f1be`](https://github.com/gohugoio/hugo/commit/9f1f1be0) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.159.2`](https://github.com/gohugoio/hugo/releases/tag/v0.159.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.159.1...v0.159.2) Note that the security fix below is not a potential threat if you either: - Trust your Markdown content files. - Have custom [render hook template](https://gohugo.io/render-hooks/) for links and images. EDIT IN: This release also adds release archives for non-extended-withdeploy builds. ##### What's Changed - Fix potential content XSS by escaping dangerous URLs in Markdown links and images [`479fe6c`](https://github.com/gohugoio/hugo/commit/479fe6c6) [@&#8203;bep](https://github.com/bep) - resources/page: Fix shared reader in Source.ValueAsOpenReadSeekCloser [`df520e3`](https://github.com/gohugoio/hugo/commit/df520e31) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14684](https://github.com/gohugoio/hugo/issues/14684) ### [`v0.159.1`](https://github.com/gohugoio/hugo/releases/tag/v0.159.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.159.0...v0.159.1) 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:](https://alpinejs.dev/directives/bind) namespace (library used by Hugo's [documentation site](https://gohugo.io/)). 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: ```toml [minify.tdewolff.svg] keepNamespaces = ['', 'x-bind'] ``` ##### What's Changed - minifiers: Keep x-bind and blank namespace in SVG minification [`42289d7`](https://github.com/gohugoio/hugo/commit/42289d76) [@&#8203;bep](https://github.com/bep) [#&#8203;14669](https://github.com/gohugoio/hugo/issues/14669) ### [`v0.159.0`](https://github.com/gohugoio/hugo/releases/tag/v0.159.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.158.0...v0.159.0) This release greatly improves and simplifies management of Node.js/npm dependencies in a multi-module setup. See [this page](https://gohugo.io/hugo-modules/nodejs-dependencies/) for more information. ##### Note - Replace deprecated site.Data with hugo.Data in tests [`a8fca59`](https://github.com/gohugoio/hugo/commit/a8fca598) [@&#8203;bep](https://github.com/bep) - Replace deprecated excludeFiles and includeFiles with files in tests [`182b104`](https://github.com/gohugoio/hugo/commit/182b1045) [@&#8203;bep](https://github.com/bep) - Replace deprecated :filename with :contentbasename in the permalinks test [`eb11c3d`](https://github.com/gohugoio/hugo/commit/eb11c3d0) [@&#8203;bep](https://github.com/bep) ##### Bug fixes - tpl/tplimpl: Fix Vimeo shortcode test [`eaf4c75`](https://github.com/gohugoio/hugo/commit/eaf4c751) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14649](https://github.com/gohugoio/hugo/issues/14649) ##### Improvements - create: Return error instead of panic when page not found [`807cae1`](https://github.com/gohugoio/hugo/commit/807cae1d) [@&#8203;mango766](https://github.com/mango766) [#&#8203;14112](https://github.com/gohugoio/hugo/issues/14112) - commands: Preserve non-content files in convert output [`c4fb61d`](https://github.com/gohugoio/hugo/commit/c4fb61d9) [@&#8203;xndvaz](https://github.com/xndvaz) [#&#8203;4621](https://github.com/gohugoio/hugo/issues/4621) - npm: Use workspaces to simplify `hugo mod npm pack` [`d88a29e`](https://github.com/gohugoio/hugo/commit/d88a29e0) [@&#8203;bep](https://github.com/bep) - commands: Close cpu profile file when StartCPUProfile fails [`9dd9c76`](https://github.com/gohugoio/hugo/commit/9dd9c760) [@&#8203;buley](https://github.com/buley) - Remove the AI Watchdog workflow for now [`3315a86`](https://github.com/gohugoio/hugo/commit/3315a86d) [@&#8203;bep](https://github.com/bep) - Remove 'bep' from PR user logins skip list [`3824484`](https://github.com/gohugoio/hugo/commit/38244842) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Comment out the Vimeo simple shortcode tests [`7813c5c`](https://github.com/gohugoio/hugo/commit/7813c5c8) [@&#8203;bep](https://github.com/bep) [#&#8203;14649](https://github.com/gohugoio/hugo/issues/14649) ##### Dependency Updates - build(deps): bump github.com/olekukonko/tablewriter from 1.1.3 to 1.1.4 ([#&#8203;14641](https://github.com/gohugoio/hugo/issues/14641)) [`3ff9b7f`](https://github.com/gohugoio/hugo/commit/3ff9b7f8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.16 to 1.7.17 [`be93ccd`](https://github.com/gohugoio/hugo/commit/be93ccd3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/magefile/mage from 1.15.0 to 1.16.1 [`2669bca`](https://github.com/gohugoio/hugo/commit/2669bca6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.36.0 to 0.37.0 [`753d447`](https://github.com/gohugoio/hugo/commit/753d447f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/grpc from 1.78.0 to 1.79.3 [`4f39d72`](https://github.com/gohugoio/hugo/commit/4f39d724) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Update docs.yaml [`d2043cf`](https://github.com/gohugoio/hugo/commit/d2043cfa) [@&#8203;bep](https://github.com/bep) - commands: Update docs linke to Node.js docs [`4f3c398`](https://github.com/gohugoio/hugo/commit/4f3c3989) [@&#8203;bep](https://github.com/bep) ### [`v0.158.0`](https://github.com/gohugoio/hugo/releases/tag/v0.158.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.157.0...v0.158.0) This release adds [css.Build](https://gohugo.io/functions/css/build/), native and very fast bundling/transformation/minifying of CSS resources. Also see the new [strings.ReplacePairs](https://gohugo.io/functions/strings/replacepairs/), a very fast option if you need to do many string replacements. ##### Notes - Upgrade to to Go 1.26.1 ([#&#8203;14597](https://github.com/gohugoio/hugo/issues/14597)) (note) [`1f578f1`](https://github.com/gohugoio/hugo/commit/1f578f16) [@&#8203;bep](https://github.com/bep) [#&#8203;14595](https://github.com/gohugoio/hugo/issues/14595). This fixes a security issue in Go's template package used by Hugo: <https://www.cve.org/CVERecord?id=CVE-2026-27142> ##### Deprecations The methods and config options are deprecated and will be removed in a future Hugo release. Also see [this article](https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869) ##### 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 - tpl/css: Fix external source maps [`e431f90`](https://github.com/gohugoio/hugo/commit/e431f90b) [@&#8203;bep](https://github.com/bep) [#&#8203;14620](https://github.com/gohugoio/hugo/issues/14620) - hugolib: Fix server no watch [`59e0446`](https://github.com/gohugoio/hugo/commit/59e0446f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14615](https://github.com/gohugoio/hugo/issues/14615) - resources: Fix context canceled on GetRemote with per-request timeout [`842d8f1`](https://github.com/gohugoio/hugo/commit/842d8f10) [@&#8203;bep](https://github.com/bep) [#&#8203;14611](https://github.com/gohugoio/hugo/issues/14611) - tpl/tplimpl: Prefer early suffixes when media type matches [`4eafd9e`](https://github.com/gohugoio/hugo/commit/4eafd9eb) [@&#8203;bep](https://github.com/bep) [#&#8203;13877](https://github.com/gohugoio/hugo/issues/13877) [#&#8203;14601](https://github.com/gohugoio/hugo/issues/14601) - all: Run go fix ./... [`e310822`](https://github.com/gohugoio/hugo/commit/e3108225) [@&#8203;bep](https://github.com/bep) - internal/warpc: Fix SIGSEGV in Close() when dispatcher fails to start [`c9b88e4`](https://github.com/gohugoio/hugo/commit/c9b88e4d) [@&#8203;bep](https://github.com/bep) [#&#8203;14536](https://github.com/gohugoio/hugo/issues/14536) - Fix index out of range panic in fileEventsContentPaths [`f797f84`](https://github.com/gohugoio/hugo/commit/f797f849) [@&#8203;bep](https://github.com/bep) [#&#8203;14573](https://github.com/gohugoio/hugo/issues/14573) ##### Improvements - resources: Re-publish on transformation cache hit [`3c980c0`](https://github.com/gohugoio/hugo/commit/3c980c07) [@&#8203;bep](https://github.com/bep) [#&#8203;14629](https://github.com/gohugoio/hugo/issues/14629) - create/skeletons: Use css.Build in theme skeleton [`404ac00`](https://github.com/gohugoio/hugo/commit/404ac000) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14626](https://github.com/gohugoio/hugo/issues/14626) - tpl/css: Add a test case for rebuilds on CSS options changes [`06fcb72`](https://github.com/gohugoio/hugo/commit/06fcb724) [@&#8203;bep](https://github.com/bep) - hugolib: Allow regular pages to cascade to self [`9b5f1d4`](https://github.com/gohugoio/hugo/commit/9b5f1d49) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14627](https://github.com/gohugoio/hugo/issues/14627) - tpl/css: Allow the user to override single loader entries [`623722b`](https://github.com/gohugoio/hugo/commit/623722bb) [@&#8203;bep](https://github.com/bep) [#&#8203;14623](https://github.com/gohugoio/hugo/issues/14623) - tpl/css: Make default loader resolution for CSS [@&#8203;import](https://github.com/import) and url() always behave the same [`a7cbcf1`](https://github.com/gohugoio/hugo/commit/a7cbcf15) [@&#8203;bep](https://github.com/bep) [#&#8203;14619](https://github.com/gohugoio/hugo/issues/14619) - internal/js: Add default mainFields for CSS builds [`36cdb2c`](https://github.com/gohugoio/hugo/commit/36cdb2c7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14614](https://github.com/gohugoio/hugo/issues/14614) - Add css.Build [`3e3b849`](https://github.com/gohugoio/hugo/commit/3e3b849c) [@&#8203;bep](https://github.com/bep) [#&#8203;14609](https://github.com/gohugoio/hugo/issues/14609) [#&#8203;14613](https://github.com/gohugoio/hugo/issues/14613) - resources: Use full path for Exif etc. decoding error/warning messages [`c47ec23`](https://github.com/gohugoio/hugo/commit/c47ec233) [@&#8203;bep](https://github.com/bep) [#&#8203;12693](https://github.com/gohugoio/hugo/issues/12693) - Move to new locales library and upgrade CLDR from v36.1 to v48.1 [`4652ae4`](https://github.com/gohugoio/hugo/commit/4652ae4a) [@&#8203;bep](https://github.com/bep) - tpl/strings: Add strings.ReplacePairs function [`13a95b9`](https://github.com/gohugoio/hugo/commit/13a95b9c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14594](https://github.com/gohugoio/hugo/issues/14594) - github: Remove pull\_request\_template.md [`54c8048`](https://github.com/gohugoio/hugo/commit/54c80487) [@&#8203;bep](https://github.com/bep) - testing: Make commands tests pass in Go 1.26.1 [`157bfdd`](https://github.com/gohugoio/hugo/commit/157bfddd) [@&#8203;bep](https://github.com/bep) - refactor: Deprecate language configuration and template methods [`d4f2122`](https://github.com/gohugoio/hugo/commit/d4f2122d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14269](https://github.com/gohugoio/hugo/issues/14269) - Replace Exif with Meta in tests [`991d2f9`](https://github.com/gohugoio/hugo/commit/991d2f9a) [@&#8203;bep](https://github.com/bep) - resources: Improve getImageOps error message [`e857777`](https://github.com/gohugoio/hugo/commit/e8577771) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14571](https://github.com/gohugoio/hugo/issues/14571) - resources/images: Add IsImageResourceWithMeta etc. tests for bmp and gif [`44dc384`](https://github.com/gohugoio/hugo/commit/44dc3847) [@&#8203;bep](https://github.com/bep) [#&#8203;14568](https://github.com/gohugoio/hugo/issues/14568) ##### Dependency Updates - deps: Upgrade github.com/evanw/esbuild v0.27.3 => v0.27.4 [`0e46a97`](https://github.com/gohugoio/hugo/commit/0e46a97e) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/getkin/kin-openapi from 0.133.0 to 0.134.0 [`c27d9e8`](https://github.com/gohugoio/hugo/commit/c27d9e8f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.42.0 to 0.43.0 [`098eac5`](https://github.com/gohugoio/hugo/commit/098eac59) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.44.0 to 0.45.0 [`87f8de8`](https://github.com/gohugoio/hugo/commit/87f8de8c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/sync from 0.19.0 to 0.20.0 [`67ef6c6`](https://github.com/gohugoio/hugo/commit/67ef6c68) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.50.0 to 0.51.0 ([#&#8203;14569](https://github.com/gohugoio/hugo/issues/14569)) [`b29c2f7`](https://github.com/gohugoio/hugo/commit/b29c2f7a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.9 to 2.24.10 ([#&#8203;14585](https://github.com/gohugoio/hugo/issues/14585)) [`e91d191`](https://github.com/gohugoio/hugo/commit/e91d1911) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.15.0 to 0.17.0 ([#&#8203;14584](https://github.com/gohugoio/hugo/issues/14584)) [`a8a54bd`](https://github.com/gohugoio/hugo/commit/a8a54bd0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.157.0`](https://github.com/gohugoio/hugo/releases/tag/v0.157.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.156.0...v0.157.0) The notable new feature is [GitInfo support for Hugo Modules](https://gohugo.io/methods/page/gitinfo/#module-content). See [this repo](https://github.com/bep/hugo-testing-git-versions) for a runnable demo where multiple versions of the same content is mounted into different versions. ##### Bug fixes - Fix menu pageRef resolution in multidimensional setups [`3dff7c8`](https://github.com/gohugoio/hugo/commit/3dff7c8c) [@&#8203;bep](https://github.com/bep) [#&#8203;14566](https://github.com/gohugoio/hugo/issues/14566) - docs: Regen and fix the imaging docshelper output [`8e28668`](https://github.com/gohugoio/hugo/commit/8e28668b) [@&#8203;bep](https://github.com/bep) [#&#8203;14562](https://github.com/gohugoio/hugo/issues/14562) - hugolib: Fix automatic section pages not replaced by sites.complements [`a18bec1`](https://github.com/gohugoio/hugo/commit/a18bec11) [@&#8203;bep](https://github.com/bep) [#&#8203;14540](https://github.com/gohugoio/hugo/issues/14540) ##### Improvements - Handle GitInfo for modules where Origin is not set when running go list [`d98cd4a`](https://github.com/gohugoio/hugo/commit/d98cd4ae) [@&#8203;bep](https://github.com/bep) [#&#8203;14564](https://github.com/gohugoio/hugo/issues/14564) - commands: Update link to highlighting style examples [`6805997`](https://github.com/gohugoio/hugo/commit/68059972) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14556](https://github.com/gohugoio/hugo/issues/14556) - Add AVIF, HEIF and HEIC partial support (only metadata for now) [`49bfb10`](https://github.com/gohugoio/hugo/commit/49bfb107) [@&#8203;bep](https://github.com/bep) [#&#8203;14549](https://github.com/gohugoio/hugo/issues/14549) - resources/images: Adjust WebP processing defaults [`b7203bb`](https://github.com/gohugoio/hugo/commit/b7203bbb) [@&#8203;jmooring](https://github.com/jmooring) - Add Page.GitInfo support for content from Git modules [`dfece5b`](https://github.com/gohugoio/hugo/commit/dfece5b6) [@&#8203;bep](https://github.com/bep) [#&#8203;14431](https://github.com/gohugoio/hugo/issues/14431) [#&#8203;5533](https://github.com/gohugoio/hugo/issues/5533) - Add per-request timeout option to `resources.GetRemote` [`2d691c7`](https://github.com/gohugoio/hugo/commit/2d691c7e) [@&#8203;vanbroup](https://github.com/vanbroup) - Update AI Watchdog action version in workflow [`b96d58a`](https://github.com/gohugoio/hugo/commit/b96d58a1) [@&#8203;bep](https://github.com/bep) - config: Skip taxonomy entries with empty keys or values [`65b4287`](https://github.com/gohugoio/hugo/commit/65b4287c) [@&#8203;bep](https://github.com/bep) [#&#8203;14550](https://github.com/gohugoio/hugo/issues/14550) - Add guideline for brevity in code and comments [`cc338a9`](https://github.com/gohugoio/hugo/commit/cc338a9d) [@&#8203;bep](https://github.com/bep) - modules: Include JSON error info from go mod download in error messages [`3850881`](https://github.com/gohugoio/hugo/commit/3850881f) [@&#8203;bep](https://github.com/bep) [#&#8203;14543](https://github.com/gohugoio/hugo/issues/14543) ##### Dependency Updates - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.8 to 2.24.9 [`9869e71`](https://github.com/gohugoio/hugo/commit/9869e71a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.14.0 to 0.15.0 [`8f47fe8`](https://github.com/gohugoio/hugo/commit/8f47fe8c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.156.0`](https://github.com/gohugoio/hugo/releases/tag/v0.156.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.155.3...v0.156.0) This release brings significant speedups of [collections.Where](https://gohugo.io/functions/collections/where/#article) and [collections.Sort](https://gohugo.io/functions/collections/sort/#article) – 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](https://discourse.gohugo.io/t/deprecations-in-v0-156-0/56732) 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 - Remove items deprecated <= v0.136.0 (note) [`af5051e`](https://github.com/gohugoio/hugo/commit/af5051e7) [@&#8203;bep](https://github.com/bep) - hugolib: Move site.Data to hugo.Data, deprecate Site.AllPages/BuildDrafts/Languages [`86aa625`](https://github.com/gohugoio/hugo/commit/86aa6252) [@&#8203;bep](https://github.com/bep) [#&#8203;14521](https://github.com/gohugoio/hugo/issues/14521) - hugolib: Add Page.Sites to Site.Sites deprecation notice [`4148ede`](https://github.com/gohugoio/hugo/commit/4148eded) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14532](https://github.com/gohugoio/hugo/issues/14532) - resources/page: Deprecate cascade.\_target in favor of cascade.target [`828ee72`](https://github.com/gohugoio/hugo/commit/828ee720) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14341](https://github.com/gohugoio/hugo/issues/14341) - tpl/tplimpl: Throw error when calling gist shortcode [`4384f9b`](https://github.com/gohugoio/hugo/commit/4384f9b8) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14491](https://github.com/gohugoio/hugo/issues/14491) - tpl/tplimpl: Throw error when calling twitter/twitter\_simple shortcodes [`55d136d`](https://github.com/gohugoio/hugo/commit/55d136dd) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14488](https://github.com/gohugoio/hugo/issues/14488) ##### Bug fixes - tpl/internal: Replace deprecated parser.ParseDir and doc.New [`4a641d1`](https://github.com/gohugoio/hugo/commit/4a641d15) [@&#8203;bep](https://github.com/bep) [#&#8203;14513](https://github.com/gohugoio/hugo/issues/14513) - commands: Fix --panicOnWarning flag having no effect with module version warnings [`3f9d0ad`](https://github.com/gohugoio/hugo/commit/3f9d0ad2) [@&#8203;bep](https://github.com/bep) [#&#8203;14524](https://github.com/gohugoio/hugo/issues/14524) - paths: Fix handling of \_ as a path name [`32027e5`](https://github.com/gohugoio/hugo/commit/32027e50) [@&#8203;khayyamsaleem](https://github.com/khayyamsaleem) [#&#8203;14344](https://github.com/gohugoio/hugo/issues/14344) - docs: Fix lineNos default value in docs.yaml [`498431d`](https://github.com/gohugoio/hugo/commit/498431d6) [@&#8203;jmooring](https://github.com/jmooring) - hugolib: Fix term title when taxonomy name contains spaces [`773664b`](https://github.com/gohugoio/hugo/commit/773664b8) [@&#8203;bep](https://github.com/bep) [#&#8203;13422](https://github.com/gohugoio/hugo/issues/13422) ##### Improvements - hugolib: Simplify sites collection [`bba2aed`](https://github.com/gohugoio/hugo/commit/bba2aed3) [@&#8203;bep](https://github.com/bep) - hugolib: Adjust hugo.Sites.Default [`29b8e17`](https://github.com/gohugoio/hugo/commit/29b8e17d) [@&#8203;bep](https://github.com/bep) [#&#8203;14531](https://github.com/gohugoio/hugo/issues/14531) - Move common/hugo/HugoInfo to resources/page [`3c82340`](https://github.com/gohugoio/hugo/commit/3c823408) [@&#8203;bep](https://github.com/bep) - hugolib: Add hugo.Sites and .Site.IsDefault(), modify .Site.Sites [`ab62320`](https://github.com/gohugoio/hugo/commit/ab62320d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14479](https://github.com/gohugoio/hugo/issues/14479) [#&#8203;14481](https://github.com/gohugoio/hugo/issues/14481) - output: Remove unused method [`8d19f5a`](https://github.com/gohugoio/hugo/commit/8d19f5a7) [@&#8203;bep](https://github.com/bep) [#&#8203;14522](https://github.com/gohugoio/hugo/issues/14522) - Update AI assistance guidelines in CONTRIBUTING.md [`7729473`](https://github.com/gohugoio/hugo/commit/77294735) [@&#8203;bep](https://github.com/bep) - tpl/collections: Speed up where and sort performance [`47e39af`](https://github.com/gohugoio/hugo/commit/47e39af2) [@&#8203;bep](https://github.com/bep) - commands: Skip chmod for files without owner-write permission [`7850e7c`](https://github.com/gohugoio/hugo/commit/7850e7ce) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14507](https://github.com/gohugoio/hugo/issues/14507) - tpl/collections: Add some more benchmarks for where and sort [`2e5132d`](https://github.com/gohugoio/hugo/commit/2e5132d8) [@&#8203;bep](https://github.com/bep) - all: Change site to project where appropriate [`19ab3f5`](https://github.com/gohugoio/hugo/commit/19ab3f58) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14504](https://github.com/gohugoio/hugo/issues/14504) - markup/highlight: Allow lineNos to be true, false, "inline", or "table" [`3158a51`](https://github.com/gohugoio/hugo/commit/3158a512) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13481](https://github.com/gohugoio/hugo/issues/13481) - Upgrade to Go 1.26 [`b358a65`](https://github.com/gohugoio/hugo/commit/b358a65c) [@&#8203;bep](https://github.com/bep) - tpl: Move from md5 to xxhash for some in memory keys [`8ae5e1a`](https://github.com/gohugoio/hugo/commit/8ae5e1a8) [@&#8203;bep](https://github.com/bep) - testscripts/commands: Update 'future' date to far future [`e277659`](https://github.com/gohugoio/hugo/commit/e2776593) [@&#8203;toddy15](https://github.com/toddy15) [#&#8203;14486](https://github.com/gohugoio/hugo/issues/14486) ##### Dependency Updates - build(deps): bump google.golang.org/api from 0.255.0 to 0.267.0 [`d8ec0ee`](https://github.com/gohugoio/hugo/commit/d8ec0eee) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/textandbinarywriter [`21be4af`](https://github.com/gohugoio/hugo/commit/21be4afd) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/simplecobra from 0.6.1 to 0.7.0 [`e549016`](https://github.com/gohugoio/hugo/commit/e549016b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/tmc from 0.5.1 to 0.6.0 [`a392906`](https://github.com/gohugoio/hugo/commit/a392906b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/extras [`86786c9`](https://github.com/gohugoio/hugo/commit/86786c91) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/passthrough [`7a7308a`](https://github.com/gohugoio/hugo/commit/7a7308ae) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.41.0 to 0.42.0 [`2d1d731`](https://github.com/gohugoio/hugo/commit/2d1d7312) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/helpers from 0.6.0 to 0.7.0 [`b26fbf8`](https://github.com/gohugoio/hugo/commit/b26fbf80) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.35.0 to 0.36.0 [`7358309`](https://github.com/gohugoio/hugo/commit/73583091) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Build Setup - snap: Stop building for ppc64el and s390x [`e6f01bb`](https://github.com/gohugoio/hugo/commit/e6f01bb4) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14519](https://github.com/gohugoio/hugo/issues/14519) - Reapply "release: Support alpha, beta, and RC releases" [`de0c9f3`](https://github.com/gohugoio/hugo/commit/de0c9f3e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14466](https://github.com/gohugoio/hugo/issues/14466) ##### Documentation - docs: Regenerate docs.yaml [`8b7b6af`](https://github.com/gohugoio/hugo/commit/8b7b6af9) [@&#8203;bep](https://github.com/bep) - docker: Add full tar and openssh-client to support GitHub Actions [`7137714`](https://github.com/gohugoio/hugo/commit/71377148) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14502](https://github.com/gohugoio/hugo/issues/14502) ### [`v0.155.3`](https://github.com/gohugoio/hugo/releases/tag/v0.155.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.155.2...v0.155.3) ##### What's Changed - hugolib: Don't render default site redirect for non-primary isHTML output formats [`6ac7d08`](https://github.com/gohugoio/hugo/commit/6ac7d081) [@&#8203;bep](https://github.com/bep) [#&#8203;14482](https://github.com/gohugoio/hugo/issues/14482) - server: Fix stuck server global error logging [`24eb84f`](https://github.com/gohugoio/hugo/commit/24eb84f8) [@&#8203;bep](https://github.com/bep) [#&#8203;14469](https://github.com/gohugoio/hugo/issues/14469) - build(deps): bump github.com/evanw/esbuild from 0.27.2 to 0.27.3 [`95a3678`](https://github.com/gohugoio/hugo/commit/95a36782) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - server: Fix panic when the server browser error handler tried to use a config in a state of flux [`9045797`](https://github.com/gohugoio/hugo/commit/9045797d) [@&#8203;bep](https://github.com/bep) [#&#8203;14470](https://github.com/gohugoio/hugo/issues/14470) ### [`v0.155.2`](https://github.com/gohugoio/hugo/releases/tag/v0.155.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.155.1...v0.155.2) 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. - Fix template change detection for multi-version sites [`0f1c7d1`](https://github.com/gohugoio/hugo/commit/0f1c7d12) [@&#8203;bep](https://github.com/bep) [#&#8203;14461](https://github.com/gohugoio/hugo/issues/14461) - resources/image: Add some image decode/encode debug logging [`6bd2bde`](https://github.com/gohugoio/hugo/commit/6bd2bde9) [@&#8203;bep](https://github.com/bep) [#&#8203;14337](https://github.com/gohugoio/hugo/issues/14337) [#&#8203;14460](https://github.com/gohugoio/hugo/issues/14460) ### [`v0.155.1`](https://github.com/gohugoio/hugo/releases/tag/v0.155.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.155.0...v0.155.1) ##### What's Changed - Fix image DecodeConfig regression of WebP images from file cache [`b5d43cd`](https://github.com/gohugoio/hugo/commit/b5d43cdc) [@&#8203;bep](https://github.com/bep) [#&#8203;14453](https://github.com/gohugoio/hugo/issues/14453) - resources/images: Fix WebP useSharpYuv being ignored [`b1e1eed`](https://github.com/gohugoio/hugo/commit/b1e1eede) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14449](https://github.com/gohugoio/hugo/issues/14449) - tpl/tplimpl: Remove failing Twitter tests [`f522a72`](https://github.com/gohugoio/hugo/commit/f522a728) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.155.0`](https://github.com/gohugoio/hugo/releases/tag/v0.155.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.5...v0.155.0) Some notable new things in this release are: - Improvements to how [versions](https://gohugo.io/methods/site/version/#article) 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](https://github.com/bep/hugo-testing-git-versions/blob/main/hugo.toml) for an annotated example. - We finally have XMP and IPTC image metadata support, in addition to EXIF, see [#&#8203;13146](https://github.com/gohugoio/hugo/issues/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]. [details]: https://discourse.gohugo.io/t/alias-paths-in-v0-155-0-and-later/56674 [server-relative]: https://gohugo.io/quick-reference/glossary/#server-relative [site-relative]: https://gohugo.io/quick-reference/glossary/#site-relative ##### Note - Make Page.Aliases more useful in multidimensional setups (note) [`ee91c70`](https://github.com/gohugoio/hugo/commit/ee91c707) [@&#8203;bep](https://github.com/bep) [#&#8203;14402](https://github.com/gohugoio/hugo/issues/14402) ##### Bug fixes - Fix data race when clearing cache in cachebusters [`8a979d5`](https://github.com/gohugoio/hugo/commit/8a979d54) [@&#8203;wjiec](https://github.com/wjiec) - resources/images: Fix comment for Quality field in ImageConfig [`fd49df8`](https://github.com/gohugoio/hugo/commit/fd49df8f) [@&#8203;bep](https://github.com/bep) - Fix panic reported in discourse [`c7b35c8`](https://github.com/gohugoio/hugo/commit/c7b35c87) [@&#8203;bep](https://github.com/bep) [#&#8203;14441](https://github.com/gohugoio/hugo/issues/14441) - Fix recently introduced partial rendering bug [`8dfcece`](https://github.com/gohugoio/hugo/commit/8dfcece8) [@&#8203;bep](https://github.com/bep) [#&#8203;14433](https://github.com/gohugoio/hugo/issues/14433) - tpl: Fix partial decorator panic when partial returns falsy [`f472dd4`](https://github.com/gohugoio/hugo/commit/f472dd48) [@&#8203;simonheimlicher](https://github.com/simonheimlicher) [#&#8203;14419](https://github.com/gohugoio/hugo/issues/14419) - resources: Fix race condition in test helper [`48566b6`](https://github.com/gohugoio/hugo/commit/48566b6f) [@&#8203;simonheimlicher](https://github.com/simonheimlicher) - Fix cascade draft panic [`11f7f39`](https://github.com/gohugoio/hugo/commit/11f7f399) [@&#8203;bep](https://github.com/bep) [#&#8203;14409](https://github.com/gohugoio/hugo/issues/14409) [#&#8203;14412](https://github.com/gohugoio/hugo/issues/14412) - hugolib: Fix multilingual alias generation [`5ba03bf`](https://github.com/gohugoio/hugo/commit/5ba03bf6) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14388](https://github.com/gohugoio/hugo/issues/14388) - Fix file mount specifity issue within the same module [`c1b2e58`](https://github.com/gohugoio/hugo/commit/c1b2e58b) [@&#8203;bep](https://github.com/bep) [#&#8203;14405](https://github.com/gohugoio/hugo/issues/14405) - warpc: Fix typed nil return in Start [`2c61109`](https://github.com/gohugoio/hugo/commit/2c611091) [@&#8203;Sam-404-404](https://github.com/Sam-404-404) [#&#8203;14372](https://github.com/gohugoio/hugo/issues/14372) - hugolib: Fix relative alias generation [`32334d0`](https://github.com/gohugoio/hugo/commit/32334d09) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14381](https://github.com/gohugoio/hugo/issues/14381) ##### Improvements - Remove disableDate and disableLatLong from MetaConfig [`5916b61`](https://github.com/gohugoio/hugo/commit/5916b61b) [@&#8203;bep](https://github.com/bep) [#&#8203;14437](https://github.com/gohugoio/hugo/issues/14437) - internal/warpc: Make webp C defaults match the Go defaults [`7eafef2`](https://github.com/gohugoio/hugo/commit/7eafef22) [@&#8203;bep](https://github.com/bep) - testscripts: Move server tests to own folder [`00c4228`](https://github.com/gohugoio/hugo/commit/00c4228f) [@&#8203;bep](https://github.com/bep) [#&#8203;14439](https://github.com/gohugoio/hugo/issues/14439) - testing: Skip some slow tests when not running in CI [`5f5b2f3`](https://github.com/gohugoio/hugo/commit/5f5b2f37) [@&#8203;bep](https://github.com/bep) [#&#8203;14438](https://github.com/gohugoio/hugo/issues/14438) - magefile: Skip commands test when running mage check locally [`ef7a22a`](https://github.com/gohugoio/hugo/commit/ef7a22a2) [@&#8203;bep](https://github.com/bep) - Remove -p 2 parallelism limit for local test runs [`9a6bfe2`](https://github.com/gohugoio/hugo/commit/9a6bfe26) [@&#8203;bep](https://github.com/bep) - Add AGENTS.md and CLAUDE.md [`0fc63fb`](https://github.com/gohugoio/hugo/commit/0fc63fbf) [@&#8203;bep](https://github.com/bep) - Add == and != operators to range predicates [`50973e7`](https://github.com/gohugoio/hugo/commit/50973e72) [@&#8203;bep](https://github.com/bep) - Add modulequeries file cache for module version queries [`b441472`](https://github.com/gohugoio/hugo/commit/b441472b) [@&#8203;bep](https://github.com/bep) [#&#8203;14417](https://github.com/gohugoio/hugo/issues/14417) - Allow v1,v2 etc. style version names while still supporting full semver in queries [`ac2c3fb`](https://github.com/gohugoio/hugo/commit/ac2c3fb2) [@&#8203;bep](https://github.com/bep) [#&#8203;14414](https://github.com/gohugoio/hugo/issues/14414) - Add range matchers for site matrix vector store filtering [`192e3c4`](https://github.com/gohugoio/hugo/commit/192e3c45) [@&#8203;bep](https://github.com/bep) [#&#8203;14359](https://github.com/gohugoio/hugo/issues/14359) - Misc webp performance work [`e569dd5`](https://github.com/gohugoio/hugo/commit/e569dd59) [@&#8203;bep](https://github.com/bep) [#&#8203;14370](https://github.com/gohugoio/hugo/issues/14370) - Move from github.com/disintegration/gift to github.com/gohugoio/gift [`1a94731`](https://github.com/gohugoio/hugo/commit/1a947316) [@&#8203;bep](https://github.com/bep) [#&#8203;14397](https://github.com/gohugoio/hugo/issues/14397) - resources/images: Stabilize order of valid sources in error message [`8e9e04e`](https://github.com/gohugoio/hugo/commit/8e9e04e3) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14390](https://github.com/gohugoio/hugo/issues/14390) - Add XMP and IPTC image metadata support [`8e2e60d`](https://github.com/gohugoio/hugo/commit/8e2e60dd) [@&#8203;bep](https://github.com/bep) [#&#8203;13146](https://github.com/gohugoio/hugo/issues/13146) - output: Add TestCanonical integration test [`2bc54df`](https://github.com/gohugoio/hugo/commit/2bc54df6) [@&#8203;bep](https://github.com/bep) - Rename common/maps to common/hmaps ([#&#8203;14384](https://github.com/gohugoio/hugo/issues/14384)) [`608ed09`](https://github.com/gohugoio/hugo/commit/608ed09a) [@&#8203;bep](https://github.com/bep) - Decode webp.ImageConfig natively [`d36a8f5`](https://github.com/gohugoio/hugo/commit/d36a8f56) [@&#8203;bep](https://github.com/bep) [#&#8203;14371](https://github.com/gohugoio/hugo/issues/14371) ##### Dependency Updates - build(deps): bump golang.org/x/tools from 0.40.0 to 0.41.0 [`7d45614`](https://github.com/gohugoio/hugo/commit/7d45614c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.1.2 to 1.1.3 [`7f12c09`](https://github.com/gohugoio/hugo/commit/7f12c090) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.23.0 to 2.23.1 [`dab2c33`](https://github.com/gohugoio/hugo/commit/dab2c332) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`576d55d`](https://github.com/gohugoio/hugo/commit/576d55d0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.34.0 to 0.35.0 [`b9400b8`](https://github.com/gohugoio/hugo/commit/b9400b8a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.31.0 to 0.32.0 [`ce0c7f4`](https://github.com/gohugoio/hugo/commit/ce0c7f42) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/gohugoio/gift v0.1.0 => v0.2.0 [`7721411`](https://github.com/gohugoio/hugo/commit/77214117) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/alecthomas/chroma/v2 from 2.22.0 to 2.23.0 [`1878471`](https://github.com/gohugoio/hugo/commit/18784711) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.48.0 to 0.49.0 [`94f1ede`](https://github.com/gohugoio/hugo/commit/94f1ede3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/lazycache from 0.8.0 to 0.8.1 [`ab374e3`](https://github.com/gohugoio/hugo/commit/ab374e3d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/alecthomas/chroma v2.21.1 => v2.22.0 [`1a91330`](https://github.com/gohugoio/hugo/commit/1a913307) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14368](https://github.com/gohugoio/hugo/issues/14368) ##### Build Setup - Revert "release: Support alpha, beta, and RC releases" [`e66a33d`](https://github.com/gohugoio/hugo/commit/e66a33d3) [@&#8203;bep](https://github.com/bep) [#&#8203;14448](https://github.com/gohugoio/hugo/issues/14448) ##### Documentation - misc: Update image processing description in README.md [`b3ea2a5`](https://github.com/gohugoio/hugo/commit/b3ea2a5f) [@&#8203;jmooring](https://github.com/jmooring) - docs: Update docs.yaml [`67b5435`](https://github.com/gohugoio/hugo/commit/67b54354) [@&#8203;jmooring](https://github.com/jmooring) - Make docs helper maxAge JSON output user friendly [`5a64551`](https://github.com/gohugoio/hugo/commit/5a64551a) [@&#8203;bep](https://github.com/bep) ### [`v0.154.5`](https://github.com/gohugoio/hugo/releases/tag/v0.154.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.4...v0.154.5) ##### What's Changed - Fix some default site redirect woes [`a775488`](https://github.com/gohugoio/hugo/commit/a7754883) [@&#8203;bep](https://github.com/bep) [#&#8203;14357](https://github.com/gohugoio/hugo/issues/14357) [#&#8203;14361](https://github.com/gohugoio/hugo/issues/14361) - hugolib: Fix newly created shortcodes not found during server rebuild [`66ba63c`](https://github.com/gohugoio/hugo/commit/66ba63cd) [@&#8203;Hasaber8](https://github.com/Hasaber8) [#&#8203;14207](https://github.com/gohugoio/hugo/issues/14207) - tpl/tplimpl: Remove trailing slash from void elements [`eb06a3c`](https://github.com/gohugoio/hugo/commit/eb06a3cd) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.154.4`](https://github.com/gohugoio/hugo/releases/tag/v0.154.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.3...v0.154.4) ##### What's Changed - tpl: Fix language resolution for markdown shortcodes [`ec178ea`](https://github.com/gohugoio/hugo/commit/ec178ea4) [@&#8203;BarkinBalci](https://github.com/BarkinBalci) [#&#8203;14098](https://github.com/gohugoio/hugo/issues/14098) - For multiple dimensions setups, fix alias handling and multihost publish path [`2d80b8a`](https://github.com/gohugoio/hugo/commit/2d80b8a7) [@&#8203;bep](https://github.com/bep) [#&#8203;14354](https://github.com/gohugoio/hugo/issues/14354) [#&#8203;14356](https://github.com/gohugoio/hugo/issues/14356) - build(deps): bump github.com/goccy/go-yaml from 1.19.1 to 1.19.2 [`a2b2a5a`](https://github.com/gohugoio/hugo/commit/a2b2a5a9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] Also see the new [Page.OutputFormats.Canonical](https://gohugo.io/methods/page/outputformats/#canonical) method. ### [`v0.154.3`](https://github.com/gohugoio/hugo/releases/tag/v0.154.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.2...v0.154.3) ##### What's Changed - build(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16 [`866b8e5`](https://github.com/gohugoio/hugo/commit/866b8e5a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.154.2`](https://github.com/gohugoio/hugo/releases/tag/v0.154.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.1...v0.154.2) ##### What's Changed - Fix alpha/fuzzy border issue with new webp decoder for images with with transparent background [`e9b9b36`](https://github.com/gohugoio/hugo/commit/e9b9b36f) [@&#8203;bep](https://github.com/bep) [#&#8203;14339](https://github.com/gohugoio/hugo/issues/14339) ### [`v0.154.1`](https://github.com/gohugoio/hugo/releases/tag/v0.154.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.154.0...v0.154.1) ##### What's Changed - Add WASM licensing information to README [`8f3527f`](https://github.com/gohugoio/hugo/commit/8f3527f6) [@&#8203;bep](https://github.com/bep) - Fix partial decorator detection in partial with blocks with outer range break or continue [`09048aa`](https://github.com/gohugoio/hugo/commit/09048aad) [@&#8203;bep](https://github.com/bep) [#&#8203;14333](https://github.com/gohugoio/hugo/issues/14333) ### [`v0.154.0`](https://github.com/gohugoio/hugo/releases/tag/v0.154.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.5...v0.154.0) Hugo `v0.154.0` is the **14th release** this year (not counting patch releases) and introduces [partial decorators](https://gohugo.io/quick-reference/glossary/#partial-decorator), or “partials with a twist.” This is a very powerful construct that I, [@&#8203;bep](https://github.com/bep), have always wanted to have in Hugo, but I could never wrap my head around an implementation. Until now. A small and not very useful example: ```handlebars {{ with partial "b.html" "World" }}Hello {{ . }}{{ end }} {{ define "_partials/b.html" }}<b>{{ inner . }}</b>{{ end }} ``` The above renders to: ```handlebars <b>Hello World</b> ``` - The new `inner` keyword can be used zero or more times in a partial template, typically with different data (e.g. pages in a range), and its presence signals a reversal of the execution -- the callee becomes the caller. - Decorators can be deeply nested, see [this PR](https://github.com/gohugoio/hugoDocs/pull/3330) for an example. This release also brings some new utility funcs in the [reflect](https://gohugo.io/functions/reflect/) package to identify the core types in Hugo. For example, to identify an [processable image](https://gohugo.io/quick-reference/glossary/#processable-image) hasn't been trivial, now it is: ```handlebars {{ $obj := . }} {{ if reflect.IsResource $obj }} {{ if reflect.IsImageResource $obj }} // It has width/height and we can process it. {{ else }} // Just link to it. {{ end }} {{ end }} ``` ##### Bug fixes - tpl/collections: Fix apply to work with built-in funcs like len [`5c7fad2`](https://github.com/gohugoio/hugo/commit/5c7fad23) [@&#8203;bep](https://github.com/bep) [#&#8203;13418](https://github.com/gohugoio/hugo/issues/13418) - Revert "resources/page: Fix slugorcontentbasename for section pages" [`bf1d20d`](https://github.com/gohugoio/hugo/commit/bf1d20d7) [@&#8203;bep](https://github.com/bep) [#&#8203;14104](https://github.com/gohugoio/hugo/issues/14104) [#&#8203;14325](https://github.com/gohugoio/hugo/issues/14325) ##### Improvements - helpers: Limit verbose watch output for better readability [`d3b5d47`](https://github.com/gohugoio/hugo/commit/d3b5d47a) [@&#8203;majiayu000](https://github.com/majiayu000) [#&#8203;14277](https://github.com/gohugoio/hugo/issues/14277) - tpl/reflect: Make the IsImageResource implementation less technical [`86cd183`](https://github.com/gohugoio/hugo/commit/86cd1838) [@&#8203;bep](https://github.com/bep) - internal/warpc: Increase WebP memory limit to 384 MiB [`871da33`](https://github.com/gohugoio/hugo/commit/871da337) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14309](https://github.com/gohugoio/hugo/issues/14309) - Update tpl/reflect/reflect.go [`1deec99`](https://github.com/gohugoio/hugo/commit/1deec99b) [@&#8203;bep](https://github.com/bep) - Add reflect.Is{Page,Site,Resource,ImageResource} [`b7bb557`](https://github.com/gohugoio/hugo/commit/b7bb557c) [@&#8203;bep](https://github.com/bep) [#&#8203;14307](https://github.com/gohugoio/hugo/issues/14307) - Allow partials to work as decorators [`7c19c19`](https://github.com/gohugoio/hugo/commit/7c19c196) [@&#8203;bep](https://github.com/bep) [#&#8203;13193](https://github.com/gohugoio/hugo/issues/13193) ##### Dependency Updates - build(deps): bump github.com/tetratelabs/wazero from 1.10.1 to 1.11.0 [`2637aa1`](https://github.com/gohugoio/hugo/commit/2637aa15) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.153.5`](https://github.com/gohugoio/hugo/releases/tag/v0.153.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.4...v0.153.5) ##### What's Changed - images: Add compression option to image config and clean up some of the options handling [`c6ae33c`](https://github.com/gohugoio/hugo/commit/c6ae33c6) [@&#8203;bep](https://github.com/bep) - config: Fix cascade per language in hugo.toml regression [`edeebf0`](https://github.com/gohugoio/hugo/commit/edeebf0d) [@&#8203;bep](https://github.com/bep) [#&#8203;14321](https://github.com/gohugoio/hugo/issues/14321) - images: Fix WebP quality and hint parameters being ignored [`ea9675f`](https://github.com/gohugoio/hugo/commit/ea9675f6) [@&#8203;simonheimlicher](https://github.com/simonheimlicher) [#&#8203;14316](https://github.com/gohugoio/hugo/issues/14316) ### [`v0.153.4`](https://github.com/gohugoio/hugo/releases/tag/v0.153.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.3...v0.153.4) ##### What's Changed - Set cascade target to the content matrix if not set in the cascade itself [`96777d9`](https://github.com/gohugoio/hugo/commit/96777d9b) [@&#8203;bep](https://github.com/bep) [#&#8203;14310](https://github.com/gohugoio/hugo/issues/14310) ### [`v0.153.3`](https://github.com/gohugoio/hugo/releases/tag/v0.153.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.2...v0.153.3) ##### What's Changed - build(deps): bump github.com/bep/imagemeta from 0.12.0 to 0.12.1 [`96ac146`](https://github.com/gohugoio/hugo/commit/96ac146e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - Fix error with \_content.gotmpl file with index.md siblings [`d4c0e44`](https://github.com/gohugoio/hugo/commit/d4c0e445) [@&#8203;bep](https://github.com/bep) [#&#8203;14299](https://github.com/gohugoio/hugo/issues/14299) ### [`v0.153.2`](https://github.com/gohugoio/hugo/releases/tag/v0.153.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.1...v0.153.2) ##### What's Changed - Fix "image: unknown format" error [`a8c5d0d`](https://github.com/gohugoio/hugo/commit/a8c5d0d0) [@&#8203;bep](https://github.com/bep) [#&#8203;14295](https://github.com/gohugoio/hugo/issues/14295) - modules: Remove extended edition check [`a94a941`](https://github.com/gohugoio/hugo/commit/a94a941f) [@&#8203;bep](https://github.com/bep) [#&#8203;14284](https://github.com/gohugoio/hugo/issues/14284) - misc: Update edition comparison and guidance in README.md [`385d1a1`](https://github.com/gohugoio/hugo/commit/385d1a13) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.153.1`](https://github.com/gohugoio/hugo/releases/tag/v0.153.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.153.0...v0.153.1) > \[!note] > This is a bug fix release. See the [main release](https://github.com/gohugoio/hugo/releases/tag/v0.153.0) for a list of new features. - Handle PNG named \*.webp [`4085ee9`](https://github.com/gohugoio/hugo/commit/4085ee93) [@&#8203;bep](https://github.com/bep) [#&#8203;14288](https://github.com/gohugoio/hugo/issues/14288) - Revert deprecation logging for contentDir per language [`168bf17`](https://github.com/gohugoio/hugo/commit/168bf17e) [@&#8203;bep](https://github.com/bep) [#&#8203;14287](https://github.com/gohugoio/hugo/issues/14287) - Fix panic when 404 is backed by a content file [`f740d7c`](https://github.com/gohugoio/hugo/commit/f740d7cf) [@&#8203;bep](https://github.com/bep) [#&#8203;14283](https://github.com/gohugoio/hugo/issues/14283) - internal/warpc: Increase WebP memory limit to 256 MiB [`5f46da6`](https://github.com/gohugoio/hugo/commit/5f46da6e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14282](https://github.com/gohugoio/hugo/issues/14282) ### [`v0.153.0`](https://github.com/gohugoio/hugo/releases/tag/v0.153.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.152.2...v0.153.0) > \[!note] > There is a newer bug fix release available [here](https://github.com/gohugoio/hugo/releases/tag/v0.153.1). This is a good one! Hugo `v0.153.0` comes with a powerful new multidimensional content model (languages, versions and roles) and completely overhauls WebP image support, and much more: - For the new multidimensional content model, start reading [sites matrix](https://gohugo.io/quick-reference/glossary/#sites-matrix) and [sites complements](https://gohugo.io/quick-reference/glossary/#sites-complements). The matrix is what gets written to disk, `complements` allows e.g. a site in Swedish to fill in missing gaps in the site in Norwegian's page and resource collections. Also see the new [Rotate](https://gohugo.io/methods/page/rotate/) method, that allows you to rotate the content tree in a given dimension. - For WebP we now build a WASM version of [libwebp](https://github.com/webmproject/libwebp/) (`v1.6.0`) and run it in the [Wazero](https://wazero.io/) runtime. We use this for both encoding and decoding. This solves an old and annoying issue with Go's stdlib's decoder, with [loss of contrast and muted colors](https://github.com/gohugoio/hugo/issues/8879) in some photos, but it also means that you don't need the extended version of Hugo to handle WebP images. And, drum roll, we now also support animated WebP, including converting to and from animated GIFs. - For MacOS, we now build signed and notarised `pkg` installers. Also: - The Asciidoctor integration is greatly improved. - New template funcs [urls.PathUnescape](https://gohugo.io/functions/urls/pathunescape/) and [urls.PathEscape](https://gohugo.io/functions/urls/pathescape/). - [openapi3.Unmarshal](https://gohugo.io/functions/openapi3/unmarshal/) now support external refs (including remote refs). ##### Notes - tpl/css: Deprecate libsass in favor of dartsass (note) [`9937a5d`](https://github.com/gohugoio/hugo/commit/9937a5dc) [@&#8203;bep](https://github.com/bep) [#&#8203;14261](https://github.com/gohugoio/hugo/issues/14261) - Build Order: Hugo builds sites based on the sorted dimensions (see below). In earlier versions, we built the sites starting with the default content language. This change is also reflected in the sort order of `.Site.Sites` to make it consistent with `.Site.Languages`. - Sort Order: The dimensions are sorted as follows, which affects build order and complement selection: - languages: By weight, then by name. - versions: By weight, then by semantic versioning (descending). - roles: By weight, then by name. - Deprecations: - The lang option on mounts (<https://gohugo.io/configuration/module/#mounts>) and segments (<https://gohugo.io/configuration/segments/#segment-definition>) is deprecated in favor of the more powerful `sites.matrix` option. - File mount `includeFiles` and `excludeFiles` are deprecated in favour of the new files filter, which supports negation. - Logging: We no longer log warnings about potential duplicate content paths, as this becomes impractical to reason about with a complex sites matrix. ##### Bug fixes - Fix some outdated front matter [`b82e496`](https://github.com/gohugoio/hugo/commit/b82e496c) [@&#8203;bep](https://github.com/bep) [#&#8203;14271](https://github.com/gohugoio/hugo/issues/14271) - Fix server rebuilds on editing content with Chinese terms [`e2e64ae`](https://github.com/gohugoio/hugo/commit/e2e64aee) [@&#8203;bep](https://github.com/bep) [#&#8203;14240](https://github.com/gohugoio/hugo/issues/14240) - Fix slow server startup of very big content trees [`7a43b92`](https://github.com/gohugoio/hugo/commit/7a43b928) [@&#8203;bep](https://github.com/bep) [#&#8203;14211](https://github.com/gohugoio/hugo/issues/14211) - github: Fix "no space left on device" issue in CI [`b037b93`](https://github.com/gohugoio/hugo/commit/b037b930) [@&#8203;bep](https://github.com/bep) - docs: Fix link to CGO wiki page [`5af3112`](https://github.com/gohugoio/hugo/commit/5af31128) [@&#8203;jordelver](https://github.com/jordelver) - Fix grammatical error in styleguide.md [`62c4740`](https://github.com/gohugoio/hugo/commit/62c47407) [@&#8203;bep](https://github.com/bep) - hugolib: Fix recently introduced data race [`94a6233`](https://github.com/gohugoio/hugo/commit/94a6233a) [@&#8203;bep](https://github.com/bep) [#&#8203;14140](https://github.com/gohugoio/hugo/issues/14140) - docshelper: Fix some YAML serialization issues with sites matrix configuration [`22d0c17`](https://github.com/gohugoio/hugo/commit/22d0c17e) [@&#8203;bep](https://github.com/bep) [#&#8203;14132](https://github.com/gohugoio/hugo/issues/14132) - resources/page: Fix slugorcontentbasename for section pages [`25c7c18`](https://github.com/gohugoio/hugo/commit/25c7c18f) [@&#8203;dvdksn](https://github.com/dvdksn) [#&#8203;14104](https://github.com/gohugoio/hugo/issues/14104) - all: Fix some benchmarks broken by modernize [`91eac9e`](https://github.com/gohugoio/hugo/commit/91eac9e5) [@&#8203;bep](https://github.com/bep) [#&#8203;14107](https://github.com/gohugoio/hugo/issues/14107) - all: Run modernize -fix ./... [`04650ce`](https://github.com/gohugoio/hugo/commit/04650ce7) [@&#8203;bep](https://github.com/bep) [#&#8203;14107](https://github.com/gohugoio/hugo/issues/14107) ##### Improvements - resources/images: Don't trust the file extension when decoding JPEG and PNG images [`65d43e1`](https://github.com/gohugoio/hugo/commit/65d43e1d) [@&#8203;bep](https://github.com/bep) - Add full filename to image processing error messages if possible [`65a7666`](https://github.com/gohugoio/hugo/commit/65a76664) [@&#8203;bep](https://github.com/bep) [#&#8203;14278](https://github.com/gohugoio/hugo/issues/14278) - tailwindcss: Add referece to skipInlineImportsNotFound when import not found in assets [`da5b1fc`](https://github.com/gohugoio/hugo/commit/da5b1fcf) [@&#8203;bep](https://github.com/bep) [#&#8203;14273](https://github.com/gohugoio/hugo/issues/14273) - Improve error messages for template failures [`0637adb`](https://github.com/gohugoio/hugo/commit/0637adb2) [@&#8203;bep](https://github.com/bep) - Improve error handling/messages in Hugo Pipes [`0bf6135`](https://github.com/gohugoio/hugo/commit/0bf61353) [@&#8203;bep](https://github.com/bep) [#&#8203;14257](https://github.com/gohugoio/hugo/issues/14257) [#&#8203;14270](https://github.com/gohugoio/hugo/issues/14270) - images: Add a webp test with bg color [`573ecb5`](https://github.com/gohugoio/hugo/commit/573ecb53) [@&#8203;bep](https://github.com/bep) - Encode and Decode using the libwebp library via WASM with animation support [`1b4514e`](https://github.com/gohugoio/hugo/commit/1b4514e0) [@&#8203;bep](https://github.com/bep) [#&#8203;10030](https://github.com/gohugoio/hugo/issues/10030) [#&#8203;8500](https://github.com/gohugoio/hugo/issues/8500) [#&#8203;12843](https://github.com/gohugoio/hugo/issues/12843) [#&#8203;8879](https://github.com/gohugoio/hugo/issues/8879) [#&#8203;12842](https://github.com/gohugoio/hugo/issues/12842) - config/allconfig: Correct error message [`429e572`](https://github.com/gohugoio/hugo/commit/429e5720) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14259](https://github.com/gohugoio/hugo/issues/14259) - tpl: Add missing functions to init files [`fa7d37f`](https://github.com/gohugoio/hugo/commit/fa7d37f0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14249](https://github.com/gohugoio/hugo/issues/14249) - github: Add some known humans to the AI whitelist [`fae49a2`](https://github.com/gohugoio/hugo/commit/fae49a22) [@&#8203;bep](https://github.com/bep) - langs/i18n: Prefer languageCode when picking translation file [`6be463b`](https://github.com/gohugoio/hugo/commit/6be463b5) [@&#8203;bep](https://github.com/bep) [#&#8203;14204](https://github.com/gohugoio/hugo/issues/14204) [#&#8203;14217](https://github.com/gohugoio/hugo/issues/14217) - Add entitlements for WebAssembly for macOS Tahoe [`9e24b56`](https://github.com/gohugoio/hugo/commit/9e24b564) [@&#8203;bep](https://github.com/bep) [#&#8203;14220](https://github.com/gohugoio/hugo/issues/14220) - testscripts: Move layouts file to new structure [`45b67f6`](https://github.com/gohugoio/hugo/commit/45b67f6c) [@&#8203;bep](https://github.com/bep) - resources: Skip integration test if Dart Sass is not installed [`5e649eb`](https://github.com/gohugoio/hugo/commit/5e649eb4) [@&#8203;jmooring](https://github.com/jmooring) - testing: Replace legacy config.toml with hugo.toml in most tests [`3073fd5`](https://github.com/gohugoio/hugo/commit/3073fd5c) [@&#8203;bep](https://github.com/bep) - testing: Port integration tests to new templates structure [`b9b304a`](https://github.com/gohugoio/hugo/commit/b9b304a1) [@&#8203;bep](https://github.com/bep) - github: Correct dependabot => dependabot\[bot] [`8be30ef`](https://github.com/gohugoio/hugo/commit/8be30ef2) [@&#8203;bep](https://github.com/bep) - config/privacy: Change GoogleAnalytics.RespectDoNotTrack default to true [`565a10c`](https://github.com/gohugoio/hugo/commit/565a10cb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13307](https://github.com/gohugoio/hugo/issues/13307) - Add signed and notarized MacOS pkg builds [`438f113`](https://github.com/gohugoio/hugo/commit/438f113f) [@&#8203;bep](https://github.com/bep) [#&#8203;14135](https://github.com/gohugoio/hugo/issues/14135) - Upgrade to Go 1.25.4 [`dab5405`](https://github.com/gohugoio/hugo/commit/dab54058) [@&#8203;bep](https://github.com/bep) - tpl/urls: Add PathEscape and PathUnescape functions [`1a1b062`](https://github.com/gohugoio/hugo/commit/1a1b062a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14209](https://github.com/gohugoio/hugo/issues/14209) - Speedup and simplify page assembly for deeper content trees [`555dfa2`](https://github.com/gohugoio/hugo/commit/555dfa20) [@&#8203;bep](https://github.com/bep) - gemini: Remove styleguide.md (for now) [`34b0c15`](https://github.com/gohugoio/hugo/commit/34b0c15a) [@&#8203;bep](https://github.com/bep) - github: Reenable Gemini, but no auto code review [`9dc38e9`](https://github.com/gohugoio/hugo/commit/9dc38e91) [@&#8203;bep](https://github.com/bep) - github: Partition tests by their root [`b592d34`](https://github.com/gohugoio/hugo/commit/b592d34e) [@&#8203;bep](https://github.com/bep) - github: Make the clean commands work [`18a2afa`](https://github.com/gohugoio/hugo/commit/18a2afa5) [@&#8203;bep](https://github.com/bep) - github: Also test the root package (left out in previous commit) [`0b0c827`](https://github.com/gohugoio/hugo/commit/0b0c827d) [@&#8203;bep](https://github.com/bep) - github: More disk space saving optimizations [`30dc75e`](https://github.com/gohugoio/hugo/commit/30dc75e6) [@&#8203;bep](https://github.com/bep) - github: Add PR Template [`6bc8e6f`](https://github.com/gohugoio/hugo/commit/6bc8e6f4) [@&#8203;jmooring](https://github.com/jmooring) - Adjust benchmark [`cda4d75`](https://github.com/gohugoio/hugo/commit/cda4d751) [@&#8203;bep](https://github.com/bep) - tpl/openapi: Add support for OpenAPI external file references [`84950ed`](https://github.com/gohugoio/hugo/commit/84950ed2) [@&#8203;bep](https://github.com/bep) [#&#8203;8067](https://github.com/gohugoio/hugo/issues/8067) - github: Skip dependabot for AI Watchdog workflow [`a8ed613`](https://github.com/gohugoio/hugo/commit/a8ed6137) [@&#8203;bep](https://github.com/bep) - github: Remove the 386 test step in GitHub test workflow [`b971b7f`](https://github.com/gohugoio/hugo/commit/b971b7f9) [@&#8203;bep](https://github.com/bep) [#&#8203;14201](https://github.com/gohugoio/hugo/issues/14201) - github: Remove test binaries after CI test runs [`24210dc`](https://github.com/gohugoio/hugo/commit/24210dca) [@&#8203;bep](https://github.com/bep) - github: Adjust watchdog run logic (now with correct spelling) [`0f94274`](https://github.com/gohugoio/hugo/commit/0f94274a) [@&#8203;bep](https://github.com/bep) - github: Adjust watchdog run logic (again) [`5f9c3a3`](https://github.com/gohugoio/hugo/commit/5f9c3a3e) [@&#8203;bep](https://github.com/bep) - github: Adjust watchdog run logic [`51d77a6`](https://github.com/gohugoio/hugo/commit/51d77a6c) [@&#8203;bep](https://github.com/bep) - github: Only run AI Watchdog when the PR is ready for review [`d25b619`](https://github.com/gohugoio/hugo/commit/d25b619c) [@&#8203;bep](https://github.com/bep) - Update aiwatchdog.yml [`4a76d8c`](https://github.com/gohugoio/hugo/commit/4a76d8c6) [@&#8203;bep](https://github.com/bep) - Update aiwatchdog.yml [`d837eff`](https://github.com/gohugoio/hugo/commit/d837eff0) [@&#8203;bep](https://github.com/bep) - Update aiwatchdog.yml [`323e306`](https://github.com/gohugoio/hugo/commit/323e306b) [@&#8203;bep](https://github.com/bep) - github: Add label to AI suspects and do not fail when confident [`2047638`](https://github.com/gohugoio/hugo/commit/2047638a) [@&#8203;bep](https://github.com/bep) - github: Adjust AI Watchdog workflow to make it run PRs from forks [`38efb70`](https://github.com/gohugoio/hugo/commit/38efb702) [@&#8203;bep](https://github.com/bep) - github: Adjust workflow permissions [`bdf8b1a`](https://github.com/gohugoio/hugo/commit/bdf8b1a9) [@&#8203;bep](https://github.com/bep) - performance: Misc allocation improvements [`f33c1a3`](https://github.com/gohugoio/hugo/commit/f33c1a3f) [@&#8203;bep](https://github.com/bep) - github: Add ai-watchdog workflow and update other workflows' versions [`56d7925`](https://github.com/gohugoio/hugo/commit/56d7925a) [@&#8203;bep](https://github.com/bep) [#&#8203;14147](https://github.com/gohugoio/hugo/issues/14147) - tpl/collections: Improve collections.D [`c6b6910`](https://github.com/gohugoio/hugo/commit/c6b6910a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14143](https://github.com/gohugoio/hugo/issues/14143) - Optimize memory allocations for sites matrix vector stores [`ca40254`](https://github.com/gohugoio/hugo/commit/ca402540) [@&#8203;bep](https://github.com/bep) - gemini: Disable auto PR codereviews for now [`44b5f13`](https://github.com/gohugoio/hugo/commit/44b5f13f) [@&#8203;bep](https://github.com/bep) - Update styleguide.md [`2c6574e`](https://github.com/gohugoio/hugo/commit/2c6574eb) [@&#8203;bep](https://github.com/bep) - Add gemini setup files [`60c4245`](https://github.com/gohugoio/hugo/commit/60c4245e) [@&#8203;bep](https://github.com/bep) - static: Preserve .gitignore and .gitattributes in --cleanDestinationDir [`5e6b269`](https://github.com/gohugoio/hugo/commit/5e6b269c) [@&#8203;Ahamed1846](https://github.com/Ahamed1846) [#&#8203;14097](https://github.com/gohugoio/hugo/issues/14097) - hugolib: Improve performance of content trees with many sections [`26f31ff`](https://github.com/gohugoio/hugo/commit/26f31ff6) [@&#8203;bep](https://github.com/bep) - Add a site assembly benchmark test for a deeper site structure with more sections and pages [`606415e`](https://github.com/gohugoio/hugo/commit/606415ec) [@&#8203;bep](https://github.com/bep) - sitesmatrix: Clary default dimension values [`dc2f6ae`](https://github.com/gohugoio/hugo/commit/dc2f6ae2) [@&#8203;bep](https://github.com/bep) - Run go mod tidy to clean up go.mod and go.sum [`a0944ac`](https://github.com/gohugoio/hugo/commit/a0944ac7) [@&#8203;bep](https://github.com/bep) - testing: Rewrite all the old style integration tests to txtar style tests [`a2469d5`](https://github.com/gohugoio/hugo/commit/a2469d50) [@&#8203;bep](https://github.com/bep) - hugolib: Delete some old integration tests [`e24b604`](https://github.com/gohugoio/hugo/commit/e24b604c) [@&#8203;bep](https://github.com/bep) - testing: Revise usage of b.N and b.Loop() in benchmarks [`4c7a78f`](https://github.com/gohugoio/hugo/commit/4c7a78f5) [@&#8203;bep](https://github.com/bep) - Add roles and versions as new dimensions (in addition to language) [`264022a`](https://github.com/gohugoio/hugo/commit/264022a7) [@&#8203;bep](https://github.com/bep) [#&#8203;519](https://github.com/gohugoio/hugo/issues/519) [#&#8203;13680](https://github.com/gohugoio/hugo/issues/13680) [#&#8203;13663](https://github.com/gohugoio/hugo/issues/13663) [#&#8203;13776](https://github.com/gohugoio/hugo/issues/13776) [#&#8203;13855](https://github.com/gohugoio/hugo/issues/13855) [#&#8203;13648](https://github.com/gohugoio/hugo/issues/13648) [#&#8203;13996](https://github.com/gohugoio/hugo/issues/13996) [#&#8203;14001](https://github.com/gohugoio/hugo/issues/14001) [#&#8203;14031](https://github.com/gohugoio/hugo/issues/14031) [#&#8203;13818](https://github.com/gohugoio/hugo/issues/13818) [#&#8203;13196](https://github.com/gohugoio/hugo/issues/13196) - Update CONTRIBUTING.md [`ff0f67e`](https://github.com/gohugoio/hugo/commit/ff0f67ea) [@&#8203;bep](https://github.com/bep) - hreflect: Cache reflect method lookups used in collections.Where and others [`e9bda21`](https://github.com/gohugoio/hugo/commit/e9bda21c) [@&#8203;bep](https://github.com/bep) - all: Simplify the reflect usage [`3893e70`](https://github.com/gohugoio/hugo/commit/3893e705) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1 [`39649dc`](https://github.com/gohugoio/hugo/commit/39649dce) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.21.0 to 2.21.1 [`614fb16`](https://github.com/gohugoio/hugo/commit/614fb16e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`33542d3`](https://github.com/gohugoio/hugo/commit/33542d39) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/alecthomas/chroma/v2 v2.20.0 => v2.21.0 [`588d20b`](https://github.com/gohugoio/hugo/commit/588d20b3) [@&#8203;bep](https://github.com/bep) [#&#8203;14266](https://github.com/gohugoio/hugo/issues/14266) - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.1 to 1.41.0 [`b337302`](https://github.com/gohugoio/hugo/commit/b3373029) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.27.1 to 0.27.2 [`e6a3f1d`](https://github.com/gohugoio/hugo/commit/e6a3f1d6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.33.0 to 0.34.0 [`364d237`](https://github.com/gohugoio/hugo/commit/364d237b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.39.0 to 0.40.0 [`079f3eb`](https://github.com/gohugoio/hugo/commit/079f3eb8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.7 to 2.24.8 [`4e6f2b6`](https://github.com/gohugoio/hugo/commit/4e6f2b67) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.43.0 to 0.44.0 [`dff5e16`](https://github.com/gohugoio/hugo/commit/dff5e168) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`c82a035`](https://github.com/gohugoio/hugo/commit/c82a035b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.27.0 to 0.27.1 [`86b01ed`](https://github.com/gohugoio/hugo/commit/86b01eda) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.0 to 1.40.1 [`9e7182e`](https://github.com/gohugoio/hugo/commit/9e7182e9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.2 [`cf3ad62`](https://github.com/gohugoio/hugo/commit/cf3ad62c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/goccy/go-yaml from 1.18.0 to 1.19.0 [`bf42138`](https://github.com/gohugoio/hugo/commit/bf421386) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.1.1 to 1.1.2 [`57fecb6`](https://github.com/gohugoio/hugo/commit/57fecb6b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2 [`6d0ab6a`](https://github.com/gohugoio/hugo/commit/6d0ab6a3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`0de8f86`](https://github.com/gohugoio/hugo/commit/0de8f860) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`2b337cd`](https://github.com/gohugoio/hugo/commit/2b337cd2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.32.0 to 0.33.0 [`cc61d00`](https://github.com/gohugoio/hugo/commit/cc61d00d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0 [`8ef2c61`](https://github.com/gohugoio/hugo/commit/8ef2c619) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.5 to 2.24.7 [`b916880`](https://github.com/gohugoio/hugo/commit/b9168803) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`2680467`](https://github.com/gohugoio/hugo/commit/26804673) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0 [`8ce80f7`](https://github.com/gohugoio/hugo/commit/8ce80f75) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tetratelabs/wazero from 1.10.0 to 1.10.1 [`4baa95b`](https://github.com/gohugoio/hugo/commit/4baa95ba) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bits-and-blooms/bitset [`b81861f`](https://github.com/gohugoio/hugo/commit/b81861fd) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.1.0 to 1.1.1 [`15cce89`](https://github.com/gohugoio/hugo/commit/15cce89e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.30.0 to 0.31.0 [`187e683`](https://github.com/gohugoio/hugo/commit/187e683b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.12 to 0.27.0 [`432078a`](https://github.com/gohugoio/hugo/commit/432078a6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.251.0 to 0.255.0 [`38608c7`](https://github.com/gohugoio/hugo/commit/38608c7c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`d75f0dc`](https://github.com/gohugoio/hugo/commit/d75f0dc6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tetratelabs/wazero from 1.9.0 to 1.10.0 [`579362e`](https://github.com/gohugoio/hugo/commit/579362ef) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.11 to 0.25.12 [`0e8f88f`](https://github.com/gohugoio/hugo/commit/0e8f88fa) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Build Setup - release: Skip pushing stable and docs update for pre-releases [`c1cc65f`](https://github.com/gohugoio/hugo/commit/c1cc65fc) [@&#8203;bep](https://github.com/bep) - release: Support alpha, beta, and RC releases [`6630759`](https://github.com/gohugoio/hugo/commit/66307592) [@&#8203;bep](https://github.com/bep) - snap: Address snapcraft deprecations [`596517a`](https://github.com/gohugoio/hugo/commit/596517a2) [@&#8203;jmooring](https://github.com/jmooring) ##### Documentation - markup/asciidocext: Improve Asciidoctor integration [`3d21b06`](https://github.com/gohugoio/hugo/commit/3d21b068) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9202](https://github.com/gohugoio/hugo/issues/9202) [#&#8203;10183](https://github.com/gohugoio/hugo/issues/10183) [#&#8203;10473](https://github.com/gohugoio/hugo/issues/10473) [#&#8203;14160](https://github.com/gohugoio/hugo/issues/14160) - hugolib/doctree: Simplify lock setup in SimpleThreadSafeTree to reduce read allocation [`fee0957`](https://github.com/gohugoio/hugo/commit/fee09576) [@&#8203;bep](https://github.com/bep) - github: Update asciidoctor-diagrams extension and add GoAT [`9d80c39`](https://github.com/gohugoio/hugo/commit/9d80c397) [@&#8203;jmooring](https://github.com/jmooring) - markup/asciidocext: Support boolean document attributes [`bca171b`](https://github.com/gohugoio/hugo/commit/bca171b6) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14138](https://github.com/gohugoio/hugo/issues/14138) - github: Allow AsciiDoc content in tests to render Ditaa diagrams [`9289aa4`](https://github.com/gohugoio/hugo/commit/9289aa43) [@&#8203;jmooring](https://github.com/jmooring) - commands: newDocsHelper encode integers as ints in generated YAML [`0efcb24`](https://github.com/gohugoio/hugo/commit/0efcb24c) [@&#8203;GrigoreAlexandru](https://github.com/GrigoreAlexandru) [#&#8203;14122](https://github.com/gohugoio/hugo/issues/14122) - github: Allow AsciiDoc content in tests to render diagrams [`2c80dee`](https://github.com/gohugoio/hugo/commit/2c80dee3) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.152.2`](https://github.com/gohugoio/hugo/releases/tag/v0.152.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.152.1...v0.152.2) In `v0.152.0` we tightened the source validation for [file mounts](https://gohugo.io/configuration/module/#mounts). We always said that *project mounts can mount with absolute file/directorynames, modules/themes are restricted to relative*. In `v0.152.0` we narrowed module/themes mounts to be local, which made the setup in the bug report listed below fail: ```toml [[module.mounts]] source = '../../node_modules/bootstrap' target = 'assets/vendor/bootstrap' ``` One part of this is security. But the construct above is *usually* very odd (the project uses files in a theme/module, not the other way around) and not very portable. But the example above demonstrates a valid exception, that we now have added support for in a portable way. The above example now works as it did before `v0.152.0`, but going forward you can also write: ```toml [[module.mounts]] source = 'node_modules/bootstrap' target = 'assets/vendor/bootstrap' ``` We now have the `node_modules` as a special case: For themes/modules we first check if the mounted source exists locally, if not we try relative to the project root. ##### What's Changed - deps: Update github.com/tdewolff/minify v2.24.4 => v2.24.5 [`1c8c21e`](https://github.com/gohugoio/hugo/commit/1c8c21e45) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14086](https://github.com/gohugoio/hugo/issues/14086) - hugofs: Make node\_modules a "special case" mount [`809ebe0`](https://github.com/gohugoio/hugo/commit/809ebe01f) [@&#8203;bep](https://github.com/bep) [#&#8203;14089](https://github.com/gohugoio/hugo/issues/14089) - github: Fix typo in stale PR message [`08a0679`](https://github.com/gohugoio/hugo/commit/08a0679a8) [@&#8203;jordelver](https://github.com/jordelver) ### [`v0.152.1`](https://github.com/gohugoio/hugo/releases/tag/v0.152.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.152.0...v0.152.1) These fixes are are all related to the YAML library upgrade in [v0.152.0](https://github.com/gohugoio/hugo/releases/tag/v0.152.0). - Expand the numeric conversions to template funcs/methods [`e08278d`](https://github.com/gohugoio/hugo/commit/e08278d16) [@&#8203;bep](https://github.com/bep) [#&#8203;14079](https://github.com/gohugoio/hugo/issues/14079) - Fix where with uint64 [`df4f80d`](https://github.com/gohugoio/hugo/commit/df4f80d54) [@&#8203;bep](https://github.com/bep) [#&#8203;14081](https://github.com/gohugoio/hugo/issues/14081) - Fix it so YAML integer types can be used where Go int types are expected [`d4c7888`](https://github.com/gohugoio/hugo/commit/d4c78885a) [@&#8203;bep](https://github.com/bep) [#&#8203;14079](https://github.com/gohugoio/hugo/issues/14079) - tpl/compare: Fix compare/sort of uint64s [`29e2c2f`](https://github.com/gohugoio/hugo/commit/29e2c2fa9) [@&#8203;bep](https://github.com/bep) [#&#8203;14078](https://github.com/gohugoio/hugo/issues/14078) - Fix "assignment to entry in nil map" on empty YAML config files [`0579afc`](https://github.com/gohugoio/hugo/commit/0579afc3c) [@&#8203;bep](https://github.com/bep) [#&#8203;14074](https://github.com/gohugoio/hugo/issues/14074) ### [`v0.152.0`](https://github.com/gohugoio/hugo/releases/tag/v0.152.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.151.2...v0.152.0) The big new thing and the motivation behind this release is the upgrade to a more modern YAML library in [@&#8203;goccy](https://github.com/goccy) 's [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml). It's been a surprisingly long and winding road to get here. **Note that this upgrade comes with some minor breaking changes, most notably that the old YAML 1.1 spec listed a set of strings that, when unquoted, were treated as boolean `true` or `false`.** So if you're using any of the values in the table below as booleans, you need to adjust your YAML, but I suspect that fixing this very surprising behavior will fix more issues than it introduces. A big new thing with this new YAML library is the support for [YAML anchors and aliases](https://www.linode.com/docs/guides/yaml-anchors-aliases-overrides-extensions/) which helps to reduce duplication in e.g. your configuration. There are some examples in Hugo's [release build configuration](https://github.com/gohugoio/hugo/blob/master/hugoreleaser.yaml) and in the [Hugo's CI release setup](https://github.com/gohugoio/hugo/blob/master/.circleci/config.yml). | Values | Old meaning | New meaning | | :---------------------------------------------- | :------------- | :------------------------------------------------------- | | `yes`, `Yes`, `YES`, `y`, `Y`, `on`, `On`, `ON` | `true` (bool) | `yes`, `Yes`, `YES`, `y`, `Y`, `on`, `On`, `ON` (string) | | `no`, `No`, `NO`, `n`, `N`, `off`, `Off`, `OFF` | `false` (bool) | `no`, `No`, `NO`, `n`, `N`, `off`, `Off`, `OFF` (string) | ##### Note - Replace to gopkg.in/yaml with github.com/goccy/go-yaml (note) [`a3d9548`](https://github.com/gohugoio/hugo/commit/a3d954846) [@&#8203;bep](https://github.com/bep) [#&#8203;8822](https://github.com/gohugoio/hugo/issues/8822) [#&#8203;13043](https://github.com/gohugoio/hugo/issues/13043) [#&#8203;14053](https://github.com/gohugoio/hugo/issues/14053) ##### Improvements - config: Clone language map entries before modifying them [`a130770`](https://github.com/gohugoio/hugo/commit/a1307700d) [@&#8203;bep](https://github.com/bep) [#&#8203;14072](https://github.com/gohugoio/hugo/issues/14072) - Skip flaky test for now [`9425b93`](https://github.com/gohugoio/hugo/commit/9425b939c) [@&#8203;bep](https://github.com/bep) [#&#8203;14072](https://github.com/gohugoio/hugo/issues/14072) - Misc YAML adjustments [`bd50c9c`](https://github.com/gohugoio/hugo/commit/bd50c9c7e) [@&#8203;bep](https://github.com/bep) [#&#8203;14067](https://github.com/gohugoio/hugo/issues/14067) - hugofs: Make sure that non-project module mounts are local paths [`a8e0ca9`](https://github.com/gohugoio/hugo/commit/a8e0ca925) [@&#8203;bep](https://github.com/bep) [#&#8203;14069](https://github.com/gohugoio/hugo/issues/14069) - langs/i18n: Improve reserved key error message [`559a029`](https://github.com/gohugoio/hugo/commit/559a029de) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14061](https://github.com/gohugoio/hugo/issues/14061) - langs: Add test case using a "reserved" i18n code [`5bad0d5`](https://github.com/gohugoio/hugo/commit/5bad0d523) [@&#8203;bep](https://github.com/bep) [#&#8203;14061](https://github.com/gohugoio/hugo/issues/14061) ##### Dependency Updates - deps: Upgrade github.com/gohugoio/go-i18n/v2 [`184b10e`](https://github.com/gohugoio/hugo/commit/184b10ed4) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.3 to 2.24.4 [`9e344bb`](https://github.com/gohugoio/hugo/commit/9e344bbe4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Build Setup - Merge branch 'release-0.151.2' [`d51adca`](https://github.com/gohugoio/hugo/commit/d51adca26) [@&#8203;bep](https://github.com/bep) ### [`v0.151.2`](https://github.com/gohugoio/hugo/releases/tag/v0.151.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.151.1...v0.151.2) ##### What's Changed - parser/pageparser: Add a testcase for nested shortcodes of the same name [`989454a`](https://github.com/gohugoio/hugo/commit/989454a52) [@&#8203;bep](https://github.com/bep) [#&#8203;14054](https://github.com/gohugoio/hugo/issues/14054) - parser/pageparser: Fix shortcode nesting regression [`1e91e46`](https://github.com/gohugoio/hugo/commit/1e91e4652) [@&#8203;bep](https://github.com/bep) [#&#8203;14054](https://github.com/gohugoio/hugo/issues/14054) ### [`v0.151.1`](https://github.com/gohugoio/hugo/releases/tag/v0.151.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.151.0...v0.151.1) This release is mostly motivated by some upstream security fixes: - Upgrade from Go 1.25.1 to Go 1.25.3 which comes with [10 security fixes](https://github.com/golang/go/issues?q=milestone%3AGo1.25.2%20label%3ASecurity). - Go's `net/html` package also has one [security patch](https://github.com/golang/net/commit/59706cdaa8f95502fdec64b67b4c61d6ca58727d) I, [@&#8203;bep](https://github.com/bep), have inspected the above issues, and none of them seem to be relevant for Hugo, but we understand that many want to have a clean security report. ##### Bug fixes - tpl: Fix strings/truncate CJK handling [`88aea56`](https://github.com/gohugoio/hugo/commit/88aea5668) [@&#8203;oishikazuo](https://github.com/oishikazuo) [#&#8203;14039](https://github.com/gohugoio/hugo/issues/14039) - parser/pagerparser: Fix closing shortcode error handling when repeated [`a133393`](https://github.com/gohugoio/hugo/commit/a133393ed) [@&#8203;bep](https://github.com/bep) ##### Improvements - Upgrade Go to 1.25.3 [`e2fb0b0`](https://github.com/gohugoio/hugo/commit/e2fb0b0e8) [@&#8203;bep](https://github.com/bep) - create/skeletons: Wrap section and home lists with section tags [`29cf874`](https://github.com/gohugoio/hugo/commit/29cf87444) [@&#8203;imomaliev](https://github.com/imomaliev) - markup/goldmark: Align blockquote default output with Goldmark [`1b4dd43`](https://github.com/gohugoio/hugo/commit/1b4dd436d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;14046](https://github.com/gohugoio/hugo/issues/14046) - parser/pageparser: Store shortcode names as unique.Handle\[string] to save memory allocations [`4414ef7`](https://github.com/gohugoio/hugo/commit/4414ef73f) [@&#8203;bep](https://github.com/bep) - testscripts: Make test assertion less specific [`9197deb`](https://github.com/gohugoio/hugo/commit/9197debbf) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/gohugoio/hashstructure from 0.5.0 to 0.6.0 [`f4c1157`](https://github.com/gohugoio/hugo/commit/f4c11571b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.30.0 to 0.32.0 [`54075ac`](https://github.com/gohugoio/hugo/commit/54075acc2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.10 to 0.25.11 [`8b52303`](https://github.com/gohugoio/hugo/commit/8b52303e3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.37.0 to 0.38.0 [`3d45d30`](https://github.com/gohugoio/hugo/commit/3d45d30a4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.28.0 to 0.29.0 [`095157c`](https://github.com/gohugoio/hugo/commit/095157cd6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.151.0`](https://github.com/gohugoio/hugo/releases/tag/v0.151.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.150.1...v0.151.0) Some notable new features in Hugo v0.151.0 are: - New [transform.HTMLToMarkdown](https://gohugo.io/functions/transform/htmltomarkdown/) template function. One possible use case would be to provide [LLM friendly content](https://llmstxt.org/). - Hugo now reports OSC 9;4 progress when building; progress bars/indicators are supported by terminals such as [Ghostty](https://ghostty.org/docs/install/release-notes/1-2-0#graphical-progress-bars) on Macos and Linux, Windows terminal. - Several new [config options](https://gohugo.io/configuration/markup/#footnote) for Markdown foot notes. ##### Note - transform/livereloadinject: Skip livereload.js injection if no tags found (note) [`7fd6762`](https://github.com/gohugoio/hugo/commit/7fd6762c1) [@&#8203;AndrewChubatiuk](https://github.com/AndrewChubatiuk) ##### Improvements and bug fixes - Fix file caching for 404 responses in resources.GetRemote [`03b33ec`](https://github.com/gohugoio/hugo/commit/03b33ecb5) [@&#8203;bep](https://github.com/bep) [#&#8203;14019](https://github.com/gohugoio/hugo/issues/14019) - markup/goldmark: Enhance footnote extension with backlinkHTML option [`b462980`](https://github.com/gohugoio/hugo/commit/b462980ac) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11434](https://github.com/gohugoio/hugo/issues/11434) - markup/goldmark: Enhance footnote extension with auto-prefixing option [`47678d8`](https://github.com/gohugoio/hugo/commit/47678d8cb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8045](https://github.com/gohugoio/hugo/issues/8045) - Adjust the terminal progress reporter a little [`510d98b`](https://github.com/gohugoio/hugo/commit/510d98b77) [@&#8203;bep](https://github.com/bep) - Add transform.HTMLToMarkdown [`c5dca3b`](https://github.com/gohugoio/hugo/commit/c5dca3bde) [@&#8203;bep](https://github.com/bep) [#&#8203;13946](https://github.com/gohugoio/hugo/issues/13946) - Report OSC 9;4 progress when building [`ec463c0`](https://github.com/gohugoio/hugo/commit/ec463c097) [@&#8203;bep](https://github.com/bep) - tpl: Workaround s390x precision of Atan and Tan [`105d3bc`](https://github.com/gohugoio/hugo/commit/105d3bc32) [@&#8203;toddy15](https://github.com/toddy15) - cache/httpcache: Add respectCacheControlNoStoreInResponse and respectCacheControlNoStoreInRequest options [`3e46ba5`](https://github.com/gohugoio/hugo/commit/3e46ba5ce) [@&#8203;bep](https://github.com/bep) [#&#8203;13990](https://github.com/gohugoio/hugo/issues/13990) - common/hreflect: Speed up IsTrutfulValue [`4d13035`](https://github.com/gohugoio/hugo/commit/4d1303512) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump google.golang.org/api from 0.248.0 to 0.251.0 [`584f052`](https://github.com/gohugoio/hugo/commit/584f052f3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`b76d717`](https://github.com/gohugoio/hugo/commit/b76d71761) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.38.1 to 1.39.2 [`4d2743e`](https://github.com/gohugoio/hugo/commit/4d2743e4c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.36.0 to 0.37.0 [`c20f70d`](https://github.com/gohugoio/hugo/commit/c20f70d9a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/afero from 1.14.0 to 1.15.0 [`1b55621`](https://github.com/gohugoio/hugo/commit/1b556216a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.24.2 to 2.24.3 [`106c8e6`](https://github.com/gohugoio/hugo/commit/106c8e6de) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.9 to 0.25.10 [`9928122`](https://github.com/gohugoio/hugo/commit/9928122eb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.28.0 to 0.29.0 [`9943c1b`](https://github.com/gohugoio/hugo/commit/9943c1bef) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.0.9 to 1.1.0 [`7667573`](https://github.com/gohugoio/hugo/commit/766757310) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/cast from 1.9.2 to 1.10.0 [`d71c07c`](https://github.com/gohugoio/hugo/commit/d71c07cf3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.150.1`](https://github.com/gohugoio/hugo/releases/tag/v0.150.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.150.0...v0.150.1) ##### What's Changed - hugolib: Change duplicate content path warning to an info log [`64f4073`](https://github.com/gohugoio/hugo/commit/64f40731f) [@&#8203;jmooring](https://github.com/jmooring) - hugolib: Restore integration test [`1140314`](https://github.com/gohugoio/hugo/commit/1140314be) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13991](https://github.com/gohugoio/hugo/issues/13991) - commands: Map --minify CLI flag to the correct configuration key [`404fd9e`](https://github.com/gohugoio/hugo/commit/404fd9e51) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13988](https://github.com/gohugoio/hugo/issues/13988) - snap: Add desktop plug [`b1b0cde`](https://github.com/gohugoio/hugo/commit/b1b0cdee3) [@&#8203;maxkapur](https://github.com/maxkapur) - test(deps): Update setup-ruby action to v1.257.0 [`3eea082`](https://github.com/gohugoio/hugo/commit/3eea08290) [@&#8203;maxkapur](https://github.com/maxkapur) ### [`v0.150.0`](https://github.com/gohugoio/hugo/releases/tag/v0.150.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.149.1...v0.150.0) The big new feature in this relase is the new `version` config option on [Module imports](https://gohugo.io/configuration/module/#version), which allows you to set the requested module [version query](https://go.dev/ref/mod#version-queries) directly in your Hugo configuration (e.g. `hugo.toml`). This is a feature that have been requested by many, and I ([@&#8203;bep](https://github.com/bep)) was reminded about it by [this recent thread](https://discourse.gohugo.io/t/mounting-different-branches-tags-from-the-same-repository/55849/5), which also outlines a common use case for this: Mounting multiple old versions/branches of API documentation into the project. ##### What's Changed - build(deps): bump golang.org/x/mod from 0.27.0 to 0.28.0 [`d1f6a1d`](https://github.com/gohugoio/hugo/commit/d1f6a1dc5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - modules: Add support for direct version module imports in hugo.toml [`747cf4a`](https://github.com/gohugoio/hugo/commit/747cf4ad6) [@&#8203;bep](https://github.com/bep) [#&#8203;13964](https://github.com/gohugoio/hugo/issues/13964) - resources/page: Fix truncated summary logic [`d8774d7`](https://github.com/gohugoio/hugo/commit/d8774d7fc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13967](https://github.com/gohugoio/hugo/issues/13967) [#&#8203;13968](https://github.com/gohugoio/hugo/issues/13968) - config/security: Add PROGRAMDATA to the osenv allowlist [`3b8947d`](https://github.com/gohugoio/hugo/commit/3b8947d82) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.149.1`](https://github.com/gohugoio/hugo/releases/tag/v0.149.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.149.0...v0.149.1) The main motivation behind this release is the [Go 1.25.1](https://groups.google.com/g/golang-announce/c/PtW9VW21NPs/m/DJhMQ-m5AQAJ) upgrade, which comes with a [security fix](https://github.com/golang/go/issues/75054). Hugo does not use the feature in question, but we understand that many Hugo users like to have a clean security report. ##### Note Note that CSS minification now targets CSS3, removing certain optimizations that were specific to CSS2. ##### What's Changed - Remove noindex meta tag from alias.html [`25c0f24`](https://github.com/gohugoio/hugo/commit/25c0f2408) [@&#8203;lzap](https://github.com/lzap) - Fix nilpointer on ToC heading [`4f2d2b2`](https://github.com/gohugoio/hugo/commit/4f2d2b2cc) [@&#8203;bep](https://github.com/bep) [#&#8203;11843](https://github.com/gohugoio/hugo/issues/11843) - tpl/collections: Require collections.D args to be ints [`b8eb45c`](https://github.com/gohugoio/hugo/commit/b8eb45c9d) [@&#8203;bep](https://github.com/bep) [#&#8203;13952](https://github.com/gohugoio/hugo/issues/13952) - Upgrade to Go 1.25.1 [`1d90aff`](https://github.com/gohugoio/hugo/commit/1d90afff1) [@&#8203;bep](https://github.com/bep) [#&#8203;13960](https://github.com/gohugoio/hugo/issues/13960) - Fix config env handling for some slice options [`e751afa`](https://github.com/gohugoio/hugo/commit/e751afa9b) [@&#8203;PikachuTW](https://github.com/PikachuTW) [#&#8203;13950](https://github.com/gohugoio/hugo/issues/13950) - minifiers: Update deprecation handling [`a09b8a6`](https://github.com/gohugoio/hugo/commit/a09b8a60e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11893](https://github.com/gohugoio/hugo/issues/11893) [#&#8203;13947](https://github.com/gohugoio/hugo/issues/13947) [#&#8203;13948](https://github.com/gohugoio/hugo/issues/13948) ### [`v0.149.0`](https://github.com/gohugoio/hugo/releases/tag/v0.149.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.148.2...v0.149.0) > \[!NOTE]\ > If running on Netlify, make sure you have configured your build with their latest build image, see [this issue](https://github.com/gohugoio/hugo/issues/13942#issuecomment-3228959652). Hugo `v0.149.0` comes with bug fixes and a set of new features/improvements, notably: - We now build with the recently released [Go 1.25](https://tip.golang.org/doc/go1.25) - A new [collections.D](https://gohugo.io/functions/collections/d/) template function that generates random sequences of integers using J. S. Vitter’s Method D, by some called [The Best Algorithm No One Knows About](https://getkerf.wordpress.com/2016/03/30/the-best-algorithm-no-one-knows-about/). - Two new [permalinks tokens](https://gohugo.io/configuration/permalinks/#tokens), `:sectionslug` and `:sectionslugs`, especially useful in multilingual Hugo projects. - A new `--omitClassComments` flag on `hugo gen chromastyles` - Several improvements to how ToC from Markdown gets rendered, see [#&#8203;13401](https://github.com/gohugoio/hugo/issues/13401) and [#&#8203;12605](https://github.com/gohugoio/hugo/issues/12605). - A new `format` option in [transform.Unmarshal](https://gohugo.io/functions/transform/unmarshal/) ##### Note - Remove test with deprecated path usage [`80e973e`](https://github.com/gohugoio/hugo/commit/80e973ea5) [@&#8203;bep](https://github.com/bep) ##### Bug fixes - create: Fix new content command with future dates [`bb4e66c`](https://github.com/gohugoio/hugo/commit/bb4e66cd7) [@&#8203;justuswilhelm](https://github.com/justuswilhelm) [#&#8203;12599](https://github.com/gohugoio/hugo/issues/12599) - Fix server rebuild when adding a new leaf bundle with resources in one go [`13b43e6`](https://github.com/gohugoio/hugo/commit/13b43e611) [@&#8203;bep](https://github.com/bep) [#&#8203;13925](https://github.com/gohugoio/hugo/issues/13925) - Fix rebuild when deleting a content adapter file [`87e100e`](https://github.com/gohugoio/hugo/commit/87e100e61) [@&#8203;bep](https://github.com/bep) ##### Improvements - tpl/collections: Add an integration test for collections.D [`84b5123`](https://github.com/gohugoio/hugo/commit/84b512391) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add collections.D using Vitter's Method D for sequential random sampling [`1ba8087`](https://github.com/gohugoio/hugo/commit/1ba80874e) [@&#8203;bep](https://github.com/bep) - commands: Deprecate --omitEmpty on chromastyles command [`61ec7a2`](https://github.com/gohugoio/hugo/commit/61ec7a20a) [@&#8203;bep](https://github.com/bep) - commands: Add --omitClassComments to the chromastyles command [`c289fca`](https://github.com/gohugoio/hugo/commit/c289fcaaa) [@&#8203;bep](https://github.com/bep) - all: Use slices.Equal [`ecdef2b`](https://github.com/gohugoio/hugo/commit/ecdef2be7) [@&#8203;minxinyi](https://github.com/minxinyi) - resources/page: Add :sectionslug and :sectionslugs permalink tokens [`12ace3a`](https://github.com/gohugoio/hugo/commit/12ace3ad5) [@&#8203;DustinFischer](https://github.com/DustinFischer) [#&#8203;13788](https://github.com/gohugoio/hugo/issues/13788) - Upgrade to Go 1.25 [`c14fddd`](https://github.com/gohugoio/hugo/commit/c14fdddad) [@&#8203;bep](https://github.com/bep) [#&#8203;13924](https://github.com/gohugoio/hugo/issues/13924) [#&#8203;13931](https://github.com/gohugoio/hugo/issues/13931) - common/hcontext: Replace with external package [`186934f`](https://github.com/gohugoio/hugo/commit/186934feb) [@&#8203;bep](https://github.com/bep) - resources/page: Use reflect.TypeFor [`bff4ddd`](https://github.com/gohugoio/hugo/commit/bff4dddb1) [@&#8203;cuiweixie](https://github.com/cuiweixie) - tpl/strings: Remove unnecessary error check [`348aae9`](https://github.com/gohugoio/hugo/commit/348aae91e) [@&#8203;Nigel2392](https://github.com/Nigel2392) - markup/goldmark: Apply Hugo Goldmark Extras when rendering TOC [`61482cf`](https://github.com/gohugoio/hugo/commit/61482cfab) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12605](https://github.com/gohugoio/hugo/issues/12605) - markup/goldmark: Sanitize TOC heading titles [`5fdcc09`](https://github.com/gohugoio/hugo/commit/5fdcc0906) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13401](https://github.com/gohugoio/hugo/issues/13401) - Add a key to the partialCached deadlock prevention [`2216028`](https://github.com/gohugoio/hugo/commit/221602862) [@&#8203;n1xx1](https://github.com/n1xx1) [#&#8203;13889](https://github.com/gohugoio/hugo/issues/13889) - transform: Add support for "format" option in transform.Unmarshal [`ecc3dd1`](https://github.com/gohugoio/hugo/commit/ecc3dd1f5) [@&#8203;n1xx1](https://github.com/n1xx1) [#&#8203;13887](https://github.com/gohugoio/hugo/issues/13887) - Skip flakey test on CI [`de4a7f1`](https://github.com/gohugoio/hugo/commit/de4a7f1e0) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/getkin/kin-openapi from 0.132.0 to 0.133.0 [`45ec2f8`](https://github.com/gohugoio/hugo/commit/45ec2f88b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.247.0 to 0.248.0 [`84dd495`](https://github.com/gohugoio/hugo/commit/84dd495f2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.6 to 0.25.9 [`327bbc6`](https://github.com/gohugoio/hugo/commit/327bbc613) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.40.0 to 0.43.0 [`2447138`](https://github.com/gohugoio/hugo/commit/2447138f1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/alecthomas/chroma/v2 v2.19.0 => v2.20.0 [`cfc38ec`](https://github.com/gohugoio/hugo/commit/cfc38ecfe) [@&#8203;bep](https://github.com/bep) [#&#8203;13917](https://github.com/gohugoio/hugo/issues/13917) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`22e579e`](https://github.com/gohugoio/hugo/commit/22e579e05) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.23.11 to 2.24.0 [`b886615`](https://github.com/gohugoio/hugo/commit/b886615d1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.23.8 to 2.23.11 [`885cd29`](https://github.com/gohugoio/hugo/commit/885cd299b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.0.8 to 1.0.9 [`debf3c5`](https://github.com/gohugoio/hugo/commit/debf3c559) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.237.0 to 0.247.0 [`1649f31`](https://github.com/gohugoio/hugo/commit/1649f3126) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.36.4 to 1.38.0 [`ccd6a4b`](https://github.com/gohugoio/hugo/commit/ccd6a4b71) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.35.0 to 0.36.0 [`6dc1a17`](https://github.com/gohugoio/hugo/commit/6dc1a1752) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/simplecobra from 0.6.0 to 0.6.1 [`806d484`](https://github.com/gohugoio/hugo/commit/806d4848c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.25.0 to 0.27.0 [`04ee1b9`](https://github.com/gohugoio/hugo/commit/04ee1b978) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.12 to 1.7.13 [`7a86fe9`](https://github.com/gohugoio/hugo/commit/7a86fe990) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.28.0 to 0.30.0 [`f5245a7`](https://github.com/gohugoio/hugo/commit/f5245a7d5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/niklasfasching/go-org v1.8.0 => v1.9.1 [`5029676`](https://github.com/gohugoio/hugo/commit/5029676ac) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13846](https://github.com/gohugoio/hugo/issues/13846) ##### Documentation - misc: Update Go version to 1.24.0 in README [`2912415`](https://github.com/gohugoio/hugo/commit/291241595) [@&#8203;jmooring](https://github.com/jmooring) - Update README.md [`01b0eda`](https://github.com/gohugoio/hugo/commit/01b0eda96) [@&#8203;bep](https://github.com/bep) ### [`v0.148.2`](https://github.com/gohugoio/hugo/releases/tag/v0.148.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.148.1...v0.148.2) ##### What's Changed - tpl: Add test for recent template selection regression [`7ff5ec7`](https://github.com/gohugoio/hugo/commit/7ff5ec734) [@&#8203;bep](https://github.com/bep) [#&#8203;13868](https://github.com/gohugoio/hugo/issues/13868) - Revert "hugolib: Honor implicit "page" type during template selection" [`3937ab2`](https://github.com/gohugoio/hugo/commit/3937ab24d) [@&#8203;bep](https://github.com/bep) [#&#8203;13868](https://github.com/gohugoio/hugo/issues/13868) - Fix regression with hyphenated codeblock templates, e.g. render-codeblock-go-html-template.html [`9c57af1`](https://github.com/gohugoio/hugo/commit/9c57af135) [@&#8203;bep](https://github.com/bep) [#&#8203;13864](https://github.com/gohugoio/hugo/issues/13864) - commands: Avoid full browser refresh on simple CSS changes [`d240a70`](https://github.com/gohugoio/hugo/commit/d240a705d) [@&#8203;bep](https://github.com/bep) ### [`v0.148.1`](https://github.com/gohugoio/hugo/releases/tag/v0.148.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.148.0...v0.148.1) ##### What's Changed - Fix assignment to entry in nil map [`6f42cfb`](https://github.com/gohugoio/hugo/commit/6f42cfbc9) [@&#8203;bep](https://github.com/bep) [#&#8203;13853](https://github.com/gohugoio/hugo/issues/13853) - deps: Downgrade github.com/niklasfasching/go-org v1.9.0 => v1.8.0 [`a84beee`](https://github.com/gohugoio/hugo/commit/a84beee42) [@&#8203;bep](https://github.com/bep) [#&#8203;13846](https://github.com/gohugoio/hugo/issues/13846) ### [`v0.148.0`](https://github.com/gohugoio/hugo/releases/tag/v0.148.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.9...v0.148.0) > \[!NOTE]\ > There's some minor breaking changes in this release. Please [read this](https://discourse.gohugo.io/t/breaking-changes-in-v0-148-0/55257) thread for more information. ##### Note - Fix some uglyURLs issues for home, section and taxonomy kind (note) [`b8ba33c`](https://github.com/gohugoio/hugo/commit/b8ba33ca9) [@&#8203;bep](https://github.com/bep) [#&#8203;4428](https://github.com/gohugoio/hugo/issues/4428) [#&#8203;7497](https://github.com/gohugoio/hugo/issues/7497) - Fix branch paths when OutputFormat.Path is configured (note) [`f967212`](https://github.com/gohugoio/hugo/commit/f967212b7) [@&#8203;bep](https://github.com/bep) [#&#8203;13829](https://github.com/gohugoio/hugo/issues/13829) ##### Bug fixes - resources/page: Allow full datetime prefix in filenames [`1b4c423`](https://github.com/gohugoio/hugo/commit/1b4c42366) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13830](https://github.com/gohugoio/hugo/issues/13830) ##### Improvements - Add Ancestors (plural) method to GitInfo, rename Ancestor field to Parent [`3e2f1cd`](https://github.com/gohugoio/hugo/commit/3e2f1cdfd) [@&#8203;bep](https://github.com/bep) [#&#8203;13839](https://github.com/gohugoio/hugo/issues/13839) - Allow creating home pages from content adapters [`bba6996`](https://github.com/gohugoio/hugo/commit/bba6996e1) [@&#8203;bep](https://github.com/bep) - Remove the internal GitInfo type and make Page.GitInf() return a pointer [`90d397b`](https://github.com/gohugoio/hugo/commit/90d397b14) [@&#8203;bep](https://github.com/bep) [#&#8203;5693](https://github.com/gohugoio/hugo/issues/5693) - source: Expose Ancestor in GitInfo [`61e6c73`](https://github.com/gohugoio/hugo/commit/61e6c730d) [@&#8203;jenbroek](https://github.com/jenbroek) [#&#8203;5693](https://github.com/gohugoio/hugo/issues/5693) - config: Increase test coverage [`266d46d`](https://github.com/gohugoio/hugo/commit/266d46dcc) [@&#8203;pixel365](https://github.com/pixel365) - markup/goldmark: Change link and image render hook enablement to enums [`84b3172`](https://github.com/gohugoio/hugo/commit/84b31721b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13535](https://github.com/gohugoio/hugo/issues/13535) - hugolib: Honor implicit "page" type during template selection [`cfc8d31`](https://github.com/gohugoio/hugo/commit/cfc8d315b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13826](https://github.com/gohugoio/hugo/issues/13826) - deploy: walkLocal worker pool for performance [`dd6e2c8`](https://github.com/gohugoio/hugo/commit/dd6e2c872) [@&#8203;davidejones](https://github.com/davidejones) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.25.5 to 0.25.6 [`0a5b870`](https://github.com/gohugoio/hugo/commit/0a5b87028) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/olekukonko/tablewriter from 1.0.7 to 1.0.8 [`94e2c27`](https://github.com/gohugoio/hugo/commit/94e2c276a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/niklasfasching/go-org from 1.8.0 to 1.9.0 [`e77b2ad`](https://github.com/gohugoio/hugo/commit/e77b2ad8f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.18.0 to 2.19.0 [`9487acf`](https://github.com/gohugoio/hugo/commit/9487acf6a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.32.0 to 0.34.0 [`1e9a0b9`](https://github.com/gohugoio/hugo/commit/1e9a0b93e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.147.9`](https://github.com/gohugoio/hugo/releases/tag/v0.147.9) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.8...v0.147.9) ##### Improvements and fixes - Remove WARN with false negatives [`6a4a3ab`](https://github.com/gohugoio/hugo/commit/6a4a3ab8f) [@&#8203;bep](https://github.com/bep) [#&#8203;13806](https://github.com/gohugoio/hugo/issues/13806) - resources/page: Make sure a map is always initialized [`36f6f98`](https://github.com/gohugoio/hugo/commit/36f6f987a) [@&#8203;bep](https://github.com/bep) [#&#8203;13810](https://github.com/gohugoio/hugo/issues/13810) - tpl/tplimpl: Copy embedded HTML table render hook to each output format [`18a9ca7`](https://github.com/gohugoio/hugo/commit/18a9ca7d7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13351](https://github.com/gohugoio/hugo/issues/13351) - tpl/tplimpl: Change resources.GetRemote errors to suppressible warnings [`b6c8dfa`](https://github.com/gohugoio/hugo/commit/b6c8dfa9d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13803](https://github.com/gohugoio/hugo/issues/13803) - common/terminal: Enable color output on windows [`4217fee`](https://github.com/gohugoio/hugo/commit/4217fee4b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8209](https://github.com/gohugoio/hugo/issues/8209) - hugolib: Remove test for deprecated future [`4ef5720`](https://github.com/gohugoio/hugo/commit/4ef572014) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump google.golang.org/api from 0.221.0 to 0.237.0 [`621ea42`](https://github.com/gohugoio/hugo/commit/621ea42f3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.36.1 to 1.36.4 [`34e8378`](https://github.com/gohugoio/hugo/commit/34e83789f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.27.0 to 0.28.0 [`4d3ebe4`](https://github.com/gohugoio/hugo/commit/4d3ebe4d2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/spf13/cast v1.8.0 => v1.9.2 [`b5c0383`](https://github.com/gohugoio/hugo/commit/b5c0383bd) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.147.8`](https://github.com/gohugoio/hugo/releases/tag/v0.147.8) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.7...v0.147.8) The primary motivation behind this release is to get the [Docker package](https://github.com/gohugoio/hugo/pkgs/container/hugo) security patched and up to date. ##### Improvements - dockerfile: Update Alpine [`8e61f1f`](https://github.com/gohugoio/hugo/commit/8e61f1fe1) [@&#8203;bep](https://github.com/bep) [#&#8203;13783](https://github.com/gohugoio/hugo/issues/13783) - dockerfile: Update Go version [`f37412a`](https://github.com/gohugoio/hugo/commit/f37412a57) [@&#8203;bep](https://github.com/bep) [#&#8203;13780](https://github.com/gohugoio/hugo/issues/13780) - hugolib: Emit ignorable warning when home page is a leaf bundle [`01241d5`](https://github.com/gohugoio/hugo/commit/01241d5dc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13538](https://github.com/gohugoio/hugo/issues/13538) - all: Replace \_build with build in tests [`32eb1a8`](https://github.com/gohugoio/hugo/commit/32eb1a8ad) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.25.3 to 0.25.5 [`21a4a9a`](https://github.com/gohugoio/hugo/commit/21a4a9acd) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/niklasfasching/go-org from 1.7.0 to 1.8.0 [`7a4a479`](https://github.com/gohugoio/hugo/commit/7a4a4790e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 [`54065b7`](https://github.com/gohugoio/hugo/commit/54065b7ef) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.11 to 1.7.12 [`e333836`](https://github.com/gohugoio/hugo/commit/e333836f4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.23.5 to 2.23.8 [`cc7bfee`](https://github.com/gohugoio/hugo/commit/cc7bfeea3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.147.7`](https://github.com/gohugoio/hugo/releases/tag/v0.147.7) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.6...v0.147.7) ##### Bug fixes - Fix language handling in shortcode templates [`5273a88`](https://github.com/gohugoio/hugo/commit/5273a884d) [@&#8203;bep](https://github.com/bep) [#&#8203;13767](https://github.com/gohugoio/hugo/issues/13767) - Make sure that unreferenced but changed bundle resources gets republished [`766a2e7`](https://github.com/gohugoio/hugo/commit/766a2e786) [@&#8203;bep](https://github.com/bep) [#&#8203;13748](https://github.com/gohugoio/hugo/issues/13748) - resources/page: Respect disablePathToLower for permalink tokens [`843ffeb`](https://github.com/gohugoio/hugo/commit/843ffeb48) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13755](https://github.com/gohugoio/hugo/issues/13755) ##### Improvements - Handle KaTeX warnings ([#&#8203;13760](https://github.com/gohugoio/hugo/issues/13760)) [`6334948`](https://github.com/gohugoio/hugo/commit/633494851) [@&#8203;bep](https://github.com/bep) [#&#8203;13735](https://github.com/gohugoio/hugo/issues/13735) - common/collections: Increase test coverage [`bff5d19`](https://github.com/gohugoio/hugo/commit/bff5d1912) [@&#8203;pixel365](https://github.com/pixel365) - parser/pageparser: Add coverage for all IsX methods of Item [`da370d3`](https://github.com/gohugoio/hugo/commit/da370d30d) [@&#8203;pixel365](https://github.com/pixel365) - resources: Remove unused interface [`6bd328c`](https://github.com/gohugoio/hugo/commit/6bd328c58) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump golang.org/x/image from 0.26.0 to 0.27.0 [`7525963`](https://github.com/gohugoio/hugo/commit/75259636c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/text from 0.24.0 to 0.25.0 [`0df9f35`](https://github.com/gohugoio/hugo/commit/0df9f3510) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/cast from 1.7.1 to 1.8.0 [`302e6a7`](https://github.com/gohugoio/hugo/commit/302e6a726) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.17.2 to 2.18.0 [`202fe0d`](https://github.com/gohugoio/hugo/commit/202fe0d45) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/olekukonko/tablewriter v0.0.5 => v1.0.7 [`13e1617`](https://github.com/gohugoio/hugo/commit/13e161755) [@&#8203;bep](https://github.com/bep) ### [`v0.147.6`](https://github.com/gohugoio/hugo/releases/tag/v0.147.6) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.5...v0.147.6) ##### What's Changed - Improve warning message on superfluous prefix when using function 'partials.Include' [`e57dcd3`](https://github.com/gohugoio/hugo/commit/e57dcd379) [@&#8203;deining](https://github.com/deining) - Fix recent regression with cascading of params to content adapters [`eaf5ace`](https://github.com/gohugoio/hugo/commit/eaf5ace30) [@&#8203;bep](https://github.com/bep) [#&#8203;13743](https://github.com/gohugoio/hugo/issues/13743) - Fix it so e.g. de in layouts/\_shortcodes/de.html is not interpreted as a language code [`9ad26b6`](https://github.com/gohugoio/hugo/commit/9ad26b69a) [@&#8203;bep](https://github.com/bep) [#&#8203;13740](https://github.com/gohugoio/hugo/issues/13740) - commands: Make sure the browser gets refreshed on changes when --disableFastRender is set [`f471936`](https://github.com/gohugoio/hugo/commit/f47193669) [@&#8203;bep](https://github.com/bep) [#&#8203;13727](https://github.com/gohugoio/hugo/issues/13727) - tpl/transform: Expose the KaTeX strict option [`013c8cf`](https://github.com/gohugoio/hugo/commit/013c8cfb2) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13729](https://github.com/gohugoio/hugo/issues/13729) ### [`v0.147.5`](https://github.com/gohugoio/hugo/releases/tag/v0.147.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.4...v0.147.5) We have gotten some requests about updating the [minifier](https://github.com/tdewolff/minify) library we use, so here you go [@&#8203;myitcv](https://github.com/myitcv) and others. I'm probably going to regret doing that particular upgrade on a Thursday, but so be it. ##### What's Changed - Fix live reload when editing inline partials [`0c7b1a3`](https://github.com/gohugoio/hugo/commit/0c7b1a3f2) [@&#8203;bep](https://github.com/bep) [#&#8203;13723](https://github.com/gohugoio/hugo/issues/13723) - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.37 to 2.23.5 [`970b887`](https://github.com/gohugoio/hugo/commit/970b887ba) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.147.4`](https://github.com/gohugoio/hugo/releases/tag/v0.147.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.3...v0.147.4) ##### What's Changed - Fix it so css.TailwindCSS inlineImports options isn't always enabled [`a03a245`](https://github.com/gohugoio/hugo/commit/a03a245f0) [@&#8203;bep](https://github.com/bep) [#&#8203;13719](https://github.com/gohugoio/hugo/issues/13719) - tpl: Add a test case [`5a81a3a`](https://github.com/gohugoio/hugo/commit/5a81a3a4c) [@&#8203;bep](https://github.com/bep) [#&#8203;13699](https://github.com/gohugoio/hugo/issues/13699) - tpl: Narrow down the usage of plain text shortcodes when rendering HTML [`6131782`](https://github.com/gohugoio/hugo/commit/61317821e) [@&#8203;bep](https://github.com/bep) [#&#8203;13698](https://github.com/gohugoio/hugo/issues/13698) - tpl: Fix theme overrides when theme has old layout setup (e.g. \_default) [`6142bc7`](https://github.com/gohugoio/hugo/commit/6142bc701) [@&#8203;bep](https://github.com/bep) [#&#8203;13715](https://github.com/gohugoio/hugo/issues/13715) ### [`v0.147.3`](https://github.com/gohugoio/hugo/releases/tag/v0.147.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.2...v0.147.3) Mostly bug fixes here, but also a new template func to get a really big number. You can read about why that is useful in [the documentation](https://gohugo.io/functions/math/maxint64/). - tpl/tplimpl: Change calls to simple versions of embedded shortcodes [`8142699`](https://github.com/gohugoio/hugo/commit/81426998b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13700](https://github.com/gohugoio/hugo/issues/13700) - config: Fix env override of slices [`bc98e7a`](https://github.com/gohugoio/hugo/commit/bc98e7a80) [@&#8203;bep](https://github.com/bep) [#&#8203;13707](https://github.com/gohugoio/hugo/issues/13707) - Fix/implement cascade for content adapters [`c745a3e`](https://github.com/gohugoio/hugo/commit/c745a3e10) [@&#8203;bep](https://github.com/bep) [#&#8203;13692](https://github.com/gohugoio/hugo/issues/13692) - commands: Fix description of new theme commands [`9d1d8c8`](https://github.com/gohugoio/hugo/commit/9d1d8c889) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13701](https://github.com/gohugoio/hugo/issues/13701) - tpl/tplimpl: Fix vimeo shortcode test to accommodate API changes [`84d7a10`](https://github.com/gohugoio/hugo/commit/84d7a108e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13687](https://github.com/gohugoio/hugo/issues/13687) - tpl/math: Add MaxInt64 function [`325a0db`](https://github.com/gohugoio/hugo/commit/325a0dba6) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13693](https://github.com/gohugoio/hugo/issues/13693) ### [`v0.147.2`](https://github.com/gohugoio/hugo/releases/tag/v0.147.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.1...v0.147.2) ##### What's Changed - Fix handling of "outputs" from content adapter pages [`363ab48`](https://github.com/gohugoio/hugo/commit/363ab48a2) [@&#8203;bep](https://github.com/bep) [#&#8203;13689](https://github.com/gohugoio/hugo/issues/13689) - tpl: Fix case issue in templates.Exists [`80f0595`](https://github.com/gohugoio/hugo/commit/80f059531) [@&#8203;bep](https://github.com/bep) [#&#8203;13684](https://github.com/gohugoio/hugo/issues/13684) - config: Add some more merge tests [`b39b249`](https://github.com/gohugoio/hugo/commit/b39b24962) [@&#8203;bep](https://github.com/bep) [#&#8203;13681](https://github.com/gohugoio/hugo/issues/13681) ### [`v0.147.1`](https://github.com/gohugoio/hugo/releases/tag/v0.147.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.147.0...v0.147.1) ##### Bug fixes - tpl: Fix overlapping layout sections [`be93d52`](https://github.com/gohugoio/hugo/commit/be93d5218) [@&#8203;bep](https://github.com/bep) [#&#8203;13672](https://github.com/gohugoio/hugo/issues/13672) - Fix it so the owning taxonomy gets rerendered in server when new tags are added [`a1cb15e`](https://github.com/gohugoio/hugo/commit/a1cb15e1c) [@&#8203;bep](https://github.com/bep) [#&#8203;13648](https://github.com/gohugoio/hugo/issues/13648) ##### Improvements - tpl: Add some more test cases [`5fec782`](https://github.com/gohugoio/hugo/commit/5fec7829b) [@&#8203;bep](https://github.com/bep) [#&#8203;13672](https://github.com/gohugoio/hugo/issues/13672) [#&#8203;13668](https://github.com/gohugoio/hugo/issues/13668) - commands/server: Display correct multihost language in console [`673a4d0`](https://github.com/gohugoio/hugo/commit/673a4d00e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12564](https://github.com/gohugoio/hugo/issues/12564) - hugolib: Use new build key in content placeholder [`31db7ed`](https://github.com/gohugoio/hugo/commit/31db7edf6) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13655](https://github.com/gohugoio/hugo/issues/13655) ##### Dependency Updates - build(deps): bump github.com/alecthomas/chroma/v2 from 2.17.0 to 2.17.2 [`620fc87`](https://github.com/gohugoio/hugo/commit/620fc87b5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0 [`8b2124e`](https://github.com/gohugoio/hugo/commit/8b2124e7c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.10 to 1.7.11 [`927d1ec`](https://github.com/gohugoio/hugo/commit/927d1ec6c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.147.0`](https://github.com/gohugoio/hugo/releases/tag/v0.147.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.7...v0.147.0) This release comes with a new `aligny` option (shoutout to [@&#8203;pranshugaba](https://github.com/pranshugaba) for the implementation) for [images.Text](https://gohugo.io/functions/images/text/) that, in combination with `alignx` makes it simple to e.g. center the text on top of image in both axis. But the main reason this release comes now and not later, is the improvements/fixes to the order Hugo applies the default configuration to some keys. This is inherited from how we did this before we rewrote the configuration handling, and it made the merging of configuration from modules/themes into the config root harder and less flexible than it had to be. Me, [@&#8203;bep](https://github.com/bep), looking into this, was triggered by [this](https://discourse.gohugo.io/t/how-to-manage-common-config-in-hugo-using-modules/54485/4) forum topic. Having many sites share a common configuration is very useful. With this release, you can simply get what the thread starter asks for by doing something à la: ```toml baseURL = "http://example.org" title = "My Hugo Site" # ... import any themes/modules. # This will merge in all config imported from imported modules. _merge = "deep" ``` See the [documentation](https://gohugo.io/configuration/introduction/#merge-configuration-settings) for details. ##### Bug fixes - tpl: Fix it so we always prefer internal codeblock rendering over render-codeblock-foo.html and similar [`07983e0`](https://github.com/gohugoio/hugo/commit/07983e04e) [@&#8203;bep](https://github.com/bep) [#&#8203;13651](https://github.com/gohugoio/hugo/issues/13651) - tpl/tplimpl: Fix allowFullScreen option in Vimeo and YouTube shortcodes [`5c49140`](https://github.com/gohugoio/hugo/commit/5c491409d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13650](https://github.com/gohugoio/hugo/issues/13650) - config: Fix \_merge issue when key doesn't exist on the left side [`179aea1`](https://github.com/gohugoio/hugo/commit/179aea11a) [@&#8203;bep](https://github.com/bep) [#&#8203;13643](https://github.com/gohugoio/hugo/issues/13643) [#&#8203;13646](https://github.com/gohugoio/hugo/issues/13646) - all: Fix typos [`6a0e042`](https://github.com/gohugoio/hugo/commit/6a0e04241) [@&#8203;coliff](https://github.com/coliff) ##### Improvements - create/skeletons: Adjust template names in theme skeleton [`75b219d`](https://github.com/gohugoio/hugo/commit/75b219db8) [@&#8203;jmooring](https://github.com/jmooring) - tpl: Remove some unreached code branches [`ad4f63c`](https://github.com/gohugoio/hugo/commit/ad4f63c92) [@&#8203;bep](https://github.com/bep) - images: Add some test cases for aligny on images.Text [`5320231`](https://github.com/gohugoio/hugo/commit/53202314a) [@&#8203;bep](https://github.com/bep) [#&#8203;13414](https://github.com/gohugoio/hugo/issues/13414) - images: Add option for vertical alignment to images.Text [`2fce0ba`](https://github.com/gohugoio/hugo/commit/2fce0bac0) [@&#8203;pranshugaba](https://github.com/pranshugaba) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.25.2 to 0.25.3 [`1bd7ac7`](https://github.com/gohugoio/hugo/commit/1bd7ac7ed) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.16.0 to 2.17.0 [`41cb880`](https://github.com/gohugoio/hugo/commit/41cb880f9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.146.7`](https://github.com/gohugoio/hugo/releases/tag/v0.146.7) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.6...v0.146.7) ##### Bug fixes - Revert the breaking change from 0.146.0 with dots in content filenames [`4967308`](https://github.com/gohugoio/hugo/commit/496730840) [@&#8203;bep](https://github.com/bep) [#&#8203;13632](https://github.com/gohugoio/hugo/issues/13632) - tpl: Fix indeterminate template lookup with templates with and without lang [`6d69dc8`](https://github.com/gohugoio/hugo/commit/6d69dc88a) [@&#8203;bep](https://github.com/bep) [#&#8203;13636](https://github.com/gohugoio/hugo/issues/13636) - tpl/collections: Fix where ... not in with empty slice [`4eb0e42`](https://github.com/gohugoio/hugo/commit/4eb0e4286) [@&#8203;bep](https://github.com/bep) [#&#8203;13621](https://github.com/gohugoio/hugo/issues/13621) - tpl: Fix layout fall back logic when layout is set in front matter but not found [`5e62cc6`](https://github.com/gohugoio/hugo/commit/5e62cc6fc) [@&#8203;bep](https://github.com/bep) [#&#8203;13630](https://github.com/gohugoio/hugo/issues/13630) ##### Improvements - parser/metadecoders: Add CSV targetType (map or slice) option to transform.Unmarshal [`db72a1f`](https://github.com/gohugoio/hugo/commit/db72a1f07) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8859](https://github.com/gohugoio/hugo/issues/8859) - tpl: Detect and fail on infinite template recursion [`1408c15`](https://github.com/gohugoio/hugo/commit/1408c156d) [@&#8203;bep](https://github.com/bep) [#&#8203;13627](https://github.com/gohugoio/hugo/issues/13627) ##### Dependency Updates - build(deps): bump github.com/yuin/goldmark-emoji from 1.0.5 to 1.0.6 [`ad78761`](https://github.com/gohugoio/hugo/commit/ad787614e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.11.0 to 0.12.0 [`9c65b9e`](https://github.com/gohugoio/hugo/commit/9c65b9e88) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.9 to 1.7.10 [`be3b147`](https://github.com/gohugoio/hugo/commit/be3b14786) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.146.6`](https://github.com/gohugoio/hugo/releases/tag/v0.146.6) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.5...v0.146.6) ##### What's Changed - tpl: Fix when layout specified in front matter and no match is found [`088cd2f`](https://github.com/gohugoio/hugo/commit/088cd2f99) [@&#8203;bep](https://github.com/bep) [#&#8203;13628](https://github.com/gohugoio/hugo/issues/13628) ### [`v0.146.5`](https://github.com/gohugoio/hugo/releases/tag/v0.146.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.4...v0.146.5) ##### What's Changed - build(deps): bump github.com/yuin/goldmark from 1.7.8 to 1.7.9 [`64cf008`](https://github.com/gohugoio/hugo/commit/64cf00888) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - tpl: Fix language handling in partials [`d61b9fc`](https://github.com/gohugoio/hugo/commit/d61b9fc60) [@&#8203;bep](https://github.com/bep) [#&#8203;13612](https://github.com/gohugoio/hugo/issues/13612) ### [`v0.146.4`](https://github.com/gohugoio/hugo/releases/tag/v0.146.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.3...v0.146.4) ##### What's Changed - tpl: Fix issue with partials without suffix [`65c94c7`](https://github.com/gohugoio/hugo/commit/65c94c7b2) [@&#8203;bep](https://github.com/bep) [#&#8203;13601](https://github.com/gohugoio/hugo/issues/13601) - tpl: Avoid panic on nonsensical return construct [`e8e8ce1`](https://github.com/gohugoio/hugo/commit/e8e8ce10d) [@&#8203;bep](https://github.com/bep) [#&#8203;13600](https://github.com/gohugoio/hugo/issues/13600) - tpl: Fix the case for a shortcode in a nested folder only [`cf9e690`](https://github.com/gohugoio/hugo/commit/cf9e6904c) [@&#8203;bep](https://github.com/bep) [#&#8203;13605](https://github.com/gohugoio/hugo/issues/13605) - tpl: Add proper file context to template parse errors [`8a2830f`](https://github.com/gohugoio/hugo/commit/8a2830f2d) [@&#8203;bep](https://github.com/bep) [#&#8203;13604](https://github.com/gohugoio/hugo/issues/13604) - tpl: Make {{ template "partials/foo.html" . }} work in older setups [`1e0287f`](https://github.com/gohugoio/hugo/commit/1e0287f47) [@&#8203;bep](https://github.com/bep) [#&#8203;13599](https://github.com/gohugoio/hugo/issues/13599) ### [`v0.146.3`](https://github.com/gohugoio/hugo/releases/tag/v0.146.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.2...v0.146.3) ##### What's Changed - tpl: Make any layout set in front matter higher priority [`30b9c19`](https://github.com/gohugoio/hugo/commit/30b9c19c7) [@&#8203;bep](https://github.com/bep) [#&#8203;13588](https://github.com/gohugoio/hugo/issues/13588) - tpl: Fix it so embedded render-codeblock-goat is used even if custom render-codeblock exists [`c871062`](https://github.com/gohugoio/hugo/commit/c8710625b) [@&#8203;bep](https://github.com/bep) [#&#8203;13595](https://github.com/gohugoio/hugo/issues/13595) ### [`v0.146.2`](https://github.com/gohugoio/hugo/releases/tag/v0.146.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.1...v0.146.2) ##### What's Changed - tpl: Fix codeblock hook resolve issue [`d1c3944`](https://github.com/gohugoio/hugo/commit/d1c394442) [@&#8203;bep](https://github.com/bep) [#&#8203;13593](https://github.com/gohugoio/hugo/issues/13593) - tpl: Fix legacy section mappings [`1074e01`](https://github.com/gohugoio/hugo/commit/1074e0115) [@&#8203;bep](https://github.com/bep) [#&#8203;13584](https://github.com/gohugoio/hugo/issues/13584) - tpl: Resolve layouts/all.html for all html output formats [`c19f1f2`](https://github.com/gohugoio/hugo/commit/c19f1f236) [@&#8203;bep](https://github.com/bep) [#&#8203;13587](https://github.com/gohugoio/hugo/issues/13587) - tpl: Fix some baseof lookup issues [`9221cbc`](https://github.com/gohugoio/hugo/commit/9221cbca4) [@&#8203;bep](https://github.com/bep) [#&#8203;13583](https://github.com/gohugoio/hugo/issues/13583) ### [`v0.146.1`](https://github.com/gohugoio/hugo/releases/tag/v0.146.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.146.0...v0.146.1) This fixes a regression introduced in [v0.146.0](https://github.com/gohugoio/hugo/releases/tag/v0.146.0) released earlier today. - tpl: Skip dot and temp files inside /layouts [`3b9f2a7`](https://github.com/gohugoio/hugo/commit/3b9f2a7de) [@&#8203;bep](https://github.com/bep) [#&#8203;13579](https://github.com/gohugoio/hugo/issues/13579) ### [`v0.146.0`](https://github.com/gohugoio/hugo/releases/tag/v0.146.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.145.0...v0.146.0) > \[!NOTE] > There's a [v0.146.1](https://github.com/gohugoio/hugo/releases/tag/v0.146.1) bug fix release that fixes a regression introduced in this release. The big new thing in this release is a fully refreshed template system – simpler and much better. We're working on the updated documentation for this, but see [this issue](https://github.com/gohugoio/hugo/pull/13541) for some more information. We have gone to great lengths to make this as backwards compatible as possible, but make sure you test your site before going live with this new version. This version also comes with a full dependency refresh and some useful new template funcs: - [templates.Current](https://gohugo.io/functions/templates/current/): Info about the current executing template and its call stack. Very useful for debugging. - [time.In](https://gohugo.io/functions/time/in/): Returns the given date/time as represented in the specified IANA time zone. ##### Bug fixes - tpl/tplimpl: Fix full screen option in vimeo and youtube shortcodes [`6f14dbe`](https://github.com/gohugoio/hugo/commit/6f14dbe24) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13531](https://github.com/gohugoio/hugo/issues/13531) ##### Improvements - tpl: Warn and skip non-hook templates inside /layouts/\_markup [`383dd82`](https://github.com/gohugoio/hugo/commit/383dd82f9) [@&#8203;bep](https://github.com/bep) [#&#8203;13577](https://github.com/gohugoio/hugo/issues/13577) - tpl: Add a partial lookup cache [`208a0de`](https://github.com/gohugoio/hugo/commit/208a0de6c) [@&#8203;bep](https://github.com/bep) [#&#8203;13571](https://github.com/gohugoio/hugo/issues/13571) - tpl: Add templates.Current [`d4c6dd1`](https://github.com/gohugoio/hugo/commit/d4c6dd16b) [@&#8203;bep](https://github.com/bep) [#&#8203;13571](https://github.com/gohugoio/hugo/issues/13571) - commands/new: Improve theme creation [`24ac6a9`](https://github.com/gohugoio/hugo/commit/24ac6a9de) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13489](https://github.com/gohugoio/hugo/issues/13489) [#&#8203;13544](https://github.com/gohugoio/hugo/issues/13544) - tpl/tplimpl: Update embedded pagination template [`1e00842`](https://github.com/gohugoio/hugo/commit/1e0084248) [@&#8203;jmooring](https://github.com/jmooring) - Reimplement and simplify Hugo's template system [`83cfdd7`](https://github.com/gohugoio/hugo/commit/83cfdd78c) [@&#8203;bep](https://github.com/bep) [#&#8203;13541](https://github.com/gohugoio/hugo/issues/13541) [#&#8203;13545](https://github.com/gohugoio/hugo/issues/13545) [#&#8203;13515](https://github.com/gohugoio/hugo/issues/13515) [#&#8203;7964](https://github.com/gohugoio/hugo/issues/7964) [#&#8203;13365](https://github.com/gohugoio/hugo/issues/13365) [#&#8203;12988](https://github.com/gohugoio/hugo/issues/12988) [#&#8203;4891](https://github.com/gohugoio/hugo/issues/4891) - config: Use the non-global logger for deprecations when possible [`812ea0b`](https://github.com/gohugoio/hugo/commit/812ea0b32) [@&#8203;bep](https://github.com/bep) - tpl/time: Add time.In function [`07cbe57`](https://github.com/gohugoio/hugo/commit/07cbe5701) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13548](https://github.com/gohugoio/hugo/issues/13548) - resources: Add option to silence dependency deprecation warnings [`c15ebce`](https://github.com/gohugoio/hugo/commit/c15ebce2f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13530](https://github.com/gohugoio/hugo/issues/13530) - common/hreflect: Replace the map/RWMutex method cache with sync.Map [`8d2379b`](https://github.com/gohugoio/hugo/commit/8d2379bcb) [@&#8203;bep](https://github.com/bep) - common/hexec: Remove github.com/cli/safeexec [`a6bd677`](https://github.com/gohugoio/hugo/commit/a6bd67793) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13516](https://github.com/gohugoio/hugo/issues/13516) - parser/metadecoder: Improve errors for non-map XML root values [`f34cdc3`](https://github.com/gohugoio/hugo/commit/f34cdc382) [@&#8203;thevilledev](https://github.com/thevilledev) - identity: Use clear to clear the finder seen map [`52561d5`](https://github.com/gohugoio/hugo/commit/52561d561) [@&#8203;bep](https://github.com/bep) - cache: Apply httpcache defaults for polling config [`d28c84a`](https://github.com/gohugoio/hugo/commit/d28c84a87) [@&#8203;khayyamsaleem](https://github.com/khayyamsaleem) [#&#8203;13471](https://github.com/gohugoio/hugo/issues/13471) - tpl/tplimpl: Add loading attribute to Vimeo shortcode [`b9add1c`](https://github.com/gohugoio/hugo/commit/b9add1c70) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13445](https://github.com/gohugoio/hugo/issues/13445) - commands: Add --omitEmpty flag to gen chromastyles [`93df176`](https://github.com/gohugoio/hugo/commit/93df17661) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13475](https://github.com/gohugoio/hugo/issues/13475) - tpl: Add trailing newline to robots.txt template [`eebea9e`](https://github.com/gohugoio/hugo/commit/eebea9ec4) [@&#8203;willfaught](https://github.com/willfaught) - commands: Skip flaky test on Windows [`3f2e1c0`](https://github.com/gohugoio/hugo/commit/3f2e1c08e) [@&#8203;bep](https://github.com/bep) [#&#8203;13465](https://github.com/gohugoio/hugo/issues/13465) - resources/image: Mark loong64 as FMA-using architecture [`3a11d22`](https://github.com/gohugoio/hugo/commit/3a11d22da) [@&#8203;hannesbraun](https://github.com/hannesbraun) ##### Dependency Updates - build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0 [`18d2d2f`](https://github.com/gohugoio/hugo/commit/18d2d2f98) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.31.0 to 0.32.0 [`cd3e349`](https://github.com/gohugoio/hugo/commit/cd3e3499b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.25.1 to 0.25.2 [`8cd799a`](https://github.com/gohugoio/hugo/commit/8cd799aac) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.25.0 to 0.26.0 [`af0602c`](https://github.com/gohugoio/hugo/commit/af0602c34) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4 [`650fe6c`](https://github.com/gohugoio/hugo/commit/650fe6cd0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.15.0 to 2.16.0 [`d63491b`](https://github.com/gohugoio/hugo/commit/d63491beb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.37.0 to 0.39.0 [`e6e18e9`](https://github.com/gohugoio/hugo/commit/e6e18e912) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.10.0 to 0.11.0 [`43af3bc`](https://github.com/gohugoio/hugo/commit/43af3bc07) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.3.0 => v0.3.1 [`10b5543`](https://github.com/gohugoio/hugo/commit/10b55439a) [@&#8203;jmooring](https://github.com/jmooring) - build(deps): bump golang.org/x/tools from 0.30.0 to 0.31.0 [`26d986f`](https://github.com/gohugoio/hugo/commit/26d986fc0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.129.0 to 0.131.0 [`ebc0693`](https://github.com/gohugoio/hugo/commit/ebc069365) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/afero from 1.11.0 to 1.14.0 [`7ca6bb0`](https://github.com/gohugoio/hugo/commit/7ca6bb06b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.9.0 to 0.10.0 [`bddd2f9`](https://github.com/gohugoio/hugo/commit/bddd2f900) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 [`1c69135`](https://github.com/gohugoio/hugo/commit/1c691358f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.24.2 to 0.25.1 [`17db4ed`](https://github.com/gohugoio/hugo/commit/17db4edb0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/godartsass/v2 from 2.4.0 to 2.4.1 [`3968f91`](https://github.com/gohugoio/hugo/commit/3968f9158) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.35.0 to 0.37.0 [`e9bd237`](https://github.com/gohugoio/hugo/commit/e9bd2373a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/godartsass/v2 from 2.3.2 to 2.4.0 [`f4f21f5`](https://github.com/gohugoio/hugo/commit/f4f21f5ea) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.24.0 to 0.25.0 [`61c39ae`](https://github.com/gohugoio/hugo/commit/61c39ae63) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade golang.org/x/mod v0.23.0 => v0.24.0 [`2037137`](https://github.com/gohugoio/hugo/commit/2037137fb) [@&#8203;bep](https://github.com/bep) [#&#8203;13484](https://github.com/gohugoio/hugo/issues/13484) - build(deps): bump github.com/bep/overlayfs from 0.9.2 to 0.10.0 [`d78d4cf`](https://github.com/gohugoio/hugo/commit/d78d4cf16) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/lazycache from 0.7.0 to 0.8.0 [`f9aae15`](https://github.com/gohugoio/hugo/commit/f9aae1581) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.8.4 to 0.9.0 [`b068671`](https://github.com/gohugoio/hugo/commit/b0686712b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/simplecobra from 0.5.0 to 0.6.0 [`93d9c05`](https://github.com/gohugoio/hugo/commit/93d9c0533) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - commands/gen: Set url in command pages to /docs/reference/commands/ [`a98ec3b`](https://github.com/gohugoio/hugo/commit/a98ec3bd0) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.145.0`](https://github.com/gohugoio/hugo/releases/tag/v0.145.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.144.2...v0.145.0) The notable new feature is the new [transform.PortableText](https://gohugo.io/functions/transform/portabletext/) function that makes it possible to use the Sanity CMS with Hugo. ##### Bug fixes - all: Typo fixes [`4094a1e`](https://github.com/gohugoio/hugo/commit/4094a1e12) [@&#8203;coliff](https://github.com/coliff) - all: Run modernize -fix ./... [`521911a`](https://github.com/gohugoio/hugo/commit/521911a57) [@&#8203;bep](https://github.com/bep) - readme: Fix relative links in Editions section [`ab9e545`](https://github.com/gohugoio/hugo/commit/ab9e54576) [@&#8203;martey](https://github.com/martey) - Fix some related content issues with content adapters [`381c0da`](https://github.com/gohugoio/hugo/commit/381c0da85) [@&#8203;bep](https://github.com/bep) [#&#8203;13443](https://github.com/gohugoio/hugo/issues/13443) - Fix potential nilpointer in httpcache config [`227e429`](https://github.com/gohugoio/hugo/commit/227e42926) [@&#8203;bep](https://github.com/bep) - Fix --printPathWarnings when site calls templates.Defer [`c3d435a`](https://github.com/gohugoio/hugo/commit/c3d435acf) [@&#8203;bep](https://github.com/bep) [#&#8203;13420](https://github.com/gohugoio/hugo/issues/13420) ##### Improvements - Use the page path and not the backing filename as the last resort in the default sort [`c498d0f`](https://github.com/gohugoio/hugo/commit/c498d0fe1) [@&#8203;bep](https://github.com/bep) - tpl: HTTPS the instagram Shortcode JS [`2f4e666`](https://github.com/gohugoio/hugo/commit/2f4e666d7) [@&#8203;coliff](https://github.com/coliff) - Add transform.PortableText [`04f21b4`](https://github.com/gohugoio/hugo/commit/04f21b4d8) [@&#8203;bep](https://github.com/bep) - hugolib: Deprecate \_build front matter key in favor of build [`d0ce942`](https://github.com/gohugoio/hugo/commit/d0ce94219) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - deps: Upgrade github.com/rogpeppe/go-internal v1.13.1 => v1.14.1 [`6927e6f`](https://github.com/gohugoio/hugo/commit/6927e6f04) [@&#8203;bep](https://github.com/bep) [#&#8203;13449](https://github.com/gohugoio/hugo/issues/13449) - build(deps): bump github.com/yuin/goldmark-emoji from 1.0.4 to 1.0.5 [`b7ae24b`](https://github.com/gohugoio/hugo/commit/b7ae24b9c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 [`1a4851f`](https://github.com/gohugoio/hugo/commit/1a4851f13) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tetratelabs/wazero from 1.8.2 to 1.9.0 [`d1f2330`](https://github.com/gohugoio/hugo/commit/d1f23309b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - github: Build docker image with both extended and withdeploy tags [`e5eecbd`](https://github.com/gohugoio/hugo/commit/e5eecbd9b) [@&#8203;margau](https://github.com/margau) ##### Build Setup - snap: Update Node.js to 22.x [`4fd7f32`](https://github.com/gohugoio/hugo/commit/4fd7f3233) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.144.2`](https://github.com/gohugoio/hugo/releases/tag/v0.144.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.144.1...v0.144.2) ##### What's Changed - Fix --printPathWarnings when site calls templates.Defer [`c3d435a`](https://github.com/gohugoio/hugo/commit/c3d435acf) [@&#8203;bep](https://github.com/bep) [#&#8203;13420](https://github.com/gohugoio/hugo/issues/13420) ### [`v0.144.1`](https://github.com/gohugoio/hugo/releases/tag/v0.144.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.144.0...v0.144.1) ##### What's Changed - markup/goldmark: Fix panic on empty Markdown header [`494e88a`](https://github.com/gohugoio/hugo/commit/494e88abf) [@&#8203;bep](https://github.com/bep) [#&#8203;13416](https://github.com/gohugoio/hugo/issues/13416) ### [`v0.144.0`](https://github.com/gohugoio/hugo/releases/tag/v0.144.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.143.1...v0.144.0) Go 1.24 upgrade, several performance improvements, new [:contentbasename](https://gohugo.io/content-management/urls/#contentbasename) and [:slugorcontentbasename](https://gohugo.io/content-management/urls/#slugorcontentbasename) permalink tokens, enable KaTeX `mhchem` extension for [transform.ToMath](https://gohugo.io/functions/transform/tomath/), full dependency refresh, new `drop` option for [js.Build](https://gohugo.io/functions/js/build/#drop), new [auth](https://gohugo.io/hugo-modules/configuration/#auth) module option useful for private module repositories, [autoID](https://gohugo.io/getting-started/configuration-markup/#parserautodefinitiontermid) support for [definition terms](https://michelf.ca/projects/php-markdown/extra/#def-list), new `configurationTypes` configuration option, and more. For more details, see [this topic](https://discourse.gohugo.io/t/more-about-the-v0-144-0-release/53584). ##### Note - Fix auto generated header ids so they don't contain e.g. hyperlink destinations (note) [`24cc255`](https://github.com/gohugoio/hugo/commit/24cc25552) [@&#8203;bep](https://github.com/bep) [#&#8203;13405](https://github.com/gohugoio/hugo/issues/13405) [#&#8203;13410](https://github.com/gohugoio/hugo/issues/13410) ##### Bug fixes - markup/goldmark: Fix panic on stray attribute nodes [`85c1727`](https://github.com/gohugoio/hugo/commit/85c172774) [@&#8203;bep](https://github.com/bep) - Fix Position for passthrough hooks [`641403f`](https://github.com/gohugoio/hugo/commit/641403f7d) [@&#8203;bep](https://github.com/bep) [#&#8203;13406](https://github.com/gohugoio/hugo/issues/13406) - config: Fix server.redirects.fromRe being ignored unless server.redirects.from is also set [`c1f4228`](https://github.com/gohugoio/hugo/commit/c1f4228d6) [@&#8203;p-weston](https://github.com/p-weston) - Fix shortcode name in error message on self-closing shortcodes with no .Inner [`e865d59`](https://github.com/gohugoio/hugo/commit/e865d5984) [@&#8203;bep](https://github.com/bep) [#&#8203;13344](https://github.com/gohugoio/hugo/issues/13344) ##### Improvements - config/allconfig: Deprecate :filename and :slugorfilename tokens [`5de3913`](https://github.com/gohugoio/hugo/commit/5de3913ed) [@&#8203;jmooring](https://github.com/jmooring) - resources/page: Revise the new contentbasename permalinks tokens [`7b7a0f3`](https://github.com/gohugoio/hugo/commit/7b7a0f362) [@&#8203;bep](https://github.com/bep) [#&#8203;11722](https://github.com/gohugoio/hugo/issues/11722) - resources/page: Add :contentbasename and :contentbasenameorslug permalink tokens [`cb7a433`](https://github.com/gohugoio/hugo/commit/cb7a4339b) [@&#8203;hacdias](https://github.com/hacdias) [#&#8203;11722](https://github.com/gohugoio/hugo/issues/11722) - Add autoID for definition terms [`157d370`](https://github.com/gohugoio/hugo/commit/157d3703c) [@&#8203;bep](https://github.com/bep) [#&#8203;13403](https://github.com/gohugoio/hugo/issues/13403) [#&#8203;11566](https://github.com/gohugoio/hugo/issues/11566) - internal/warpc: Enable KaTeX mhchem extension [`503dcf6`](https://github.com/gohugoio/hugo/commit/503dcf625) [@&#8203;jmooring](https://github.com/jmooring) - modules: Add GOAUTH to module config [`2c77719`](https://github.com/gohugoio/hugo/commit/2c77719cd) [@&#8203;bep](https://github.com/bep) [#&#8203;13385](https://github.com/gohugoio/hugo/issues/13385) - Support menus as maps in content adapters [`fd38aee`](https://github.com/gohugoio/hugo/commit/fd38aee69) [@&#8203;bep](https://github.com/bep) [#&#8203;13384](https://github.com/gohugoio/hugo/issues/13384) - js/esbuild: Add drop option [`d25f7ec`](https://github.com/gohugoio/hugo/commit/d25f7ec17) [@&#8203;bep](https://github.com/bep) [#&#8203;13362](https://github.com/gohugoio/hugo/issues/13362) - config: Remove unused code [`34dcac5`](https://github.com/gohugoio/hugo/commit/34dcac53b) [@&#8203;jmooring](https://github.com/jmooring) - commands: Use punctuation consistently in short description [`ee43860`](https://github.com/gohugoio/hugo/commit/ee438606d) [@&#8203;jmooring](https://github.com/jmooring) - Upgrade to Go 1.24 [`fd8b0fb`](https://github.com/gohugoio/hugo/commit/fd8b0fbf8) [@&#8203;bep](https://github.com/bep) [#&#8203;13381](https://github.com/gohugoio/hugo/issues/13381) - Deprecate kind, lang, and path from front matter [`9b5f786`](https://github.com/gohugoio/hugo/commit/9b5f786df) [@&#8203;bep](https://github.com/bep) [#&#8203;12484](https://github.com/gohugoio/hugo/issues/12484) - commands: Move the CHMOD event filter up [`e6feb9e`](https://github.com/gohugoio/hugo/commit/e6feb9e0b) [@&#8203;bep](https://github.com/bep) [#&#8203;13373](https://github.com/gohugoio/hugo/issues/13373) - parser: Handle org-mode filetags as slice [`f02da7f`](https://github.com/gohugoio/hugo/commit/f02da7fbc) [@&#8203;theSuess](https://github.com/theSuess) - Add ContentTypes to config [`c2fb221`](https://github.com/gohugoio/hugo/commit/c2fb22120) [@&#8203;bep](https://github.com/bep) [#&#8203;12274](https://github.com/gohugoio/hugo/issues/12274) - commands: Validate style argument passed to gen chromastyles [`a352e69`](https://github.com/gohugoio/hugo/commit/a352e69b0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13357](https://github.com/gohugoio/hugo/issues/13357) - Update CONTRIBUTING.md [`1dd27be`](https://github.com/gohugoio/hugo/commit/1dd27be81) [@&#8203;bep](https://github.com/bep) - Move "print unused templates" after renderDeferred [`eb7a5aa`](https://github.com/gohugoio/hugo/commit/eb7a5aaba) [@&#8203;bep](https://github.com/bep) [#&#8203;13355](https://github.com/gohugoio/hugo/issues/13355) - Add some more server options/improvements [`029d1e0`](https://github.com/gohugoio/hugo/commit/029d1e0ce) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1 [`a2ca956`](https://github.com/gohugoio/hugo/commit/a2ca95629) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/sanity-io/litter from 1.5.7 to 1.5.8 [`367fe52`](https://github.com/gohugoio/hugo/commit/367fe526e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/sanity-io/litter from 1.5.5 to 1.5.7 [`9c2f8ec`](https://github.com/gohugoio/hugo/commit/9c2f8ec61) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/extras [`bd77944`](https://github.com/gohugoio/hugo/commit/bd77944ba) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.29.0 to 0.30.0 [`2e835d0`](https://github.com/gohugoio/hugo/commit/2e835d084) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`d89b9d8`](https://github.com/gohugoio/hugo/commit/d89b9d891) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.206.0 to 0.221.0 [`8721a35`](https://github.com/gohugoio/hugo/commit/8721a3520) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.8.3 to 0.8.4 [`c054e18`](https://github.com/gohugoio/hugo/commit/c054e1882) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.22.0 to 0.24.0 [`5e4ffa0`](https://github.com/gohugoio/hugo/commit/5e4ffa0e8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.22.0 to 0.23.0 [`0cdcc2b`](https://github.com/gohugoio/hugo/commit/0cdcc2b58) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gohugoio/hashstructure from 0.3.0 to 0.5.0 [`a591c44`](https://github.com/gohugoio/hugo/commit/a591c4406) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/simplecobra from 0.4.0 to 0.5.0 [`2d86a05`](https://github.com/gohugoio/hugo/commit/2d86a0512) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`22ee091`](https://github.com/gohugoio/hugo/commit/22ee0918f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.32.4 to 1.36.1 [`b50ab04`](https://github.com/gohugoio/hugo/commit/b50ab0403) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.129.0 [`b772f0e`](https://github.com/gohugoio/hugo/commit/b772f0e3d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6 [`d58c019`](https://github.com/gohugoio/hugo/commit/d58c0198d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update README.md [`5dd0ba0`](https://github.com/gohugoio/hugo/commit/5dd0ba00f) [@&#8203;jmooring](https://github.com/jmooring) - helpers: Add Chroma styles to docs.yaml [`f0c1852`](https://github.com/gohugoio/hugo/commit/f0c185297) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13360](https://github.com/gohugoio/hugo/issues/13360) ### [`v0.143.1`](https://github.com/gohugoio/hugo/releases/tag/v0.143.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.143.0...v0.143.1) ##### What's Changed - Fix RSS with baseURL with sub dir when render hooks is enabled [`760c13a`](https://github.com/gohugoio/hugo/commit/760c13a7a) [@&#8203;bep](https://github.com/bep) [#&#8203;13332](https://github.com/gohugoio/hugo/issues/13332) - mage: Simplify magefile [`3bd73d2`](https://github.com/gohugoio/hugo/commit/3bd73d262) [@&#8203;alexandear](https://github.com/alexandear) - common/hugo: Adjust deprecation timing and message [`7104de8`](https://github.com/gohugoio/hugo/commit/7104de83c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13333](https://github.com/gohugoio/hugo/issues/13333) - Re-introduce the LRU-evicted identities in change set calculation [`835579b`](https://github.com/gohugoio/hugo/commit/835579b33) [@&#8203;bep](https://github.com/bep) ### [`v0.143.0`](https://github.com/gohugoio/hugo/releases/tag/v0.143.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.142.0...v0.143.0) This is mostly a bug fix release, ironing out some quirks with the partial server rebuilds etc., but notable is also the new [responseHeaders ](https://gohugo.io/functions/resources/getremote/#responseheaders) option on `resources.GetRemote` that allows you to extract headers from the server’s response. ##### Bug fixes - Fix some server/watch rebuild issues [`db28695`](https://github.com/gohugoio/hugo/commit/db28695ff) [@&#8203;bep](https://github.com/bep) [#&#8203;13316](https://github.com/gohugoio/hugo/issues/13316) - Fix "concurrent map iteration and map write" in pages from data [`329b234`](https://github.com/gohugoio/hugo/commit/329b2342f) [@&#8203;bep](https://github.com/bep) [#&#8203;13254](https://github.com/gohugoio/hugo/issues/13254) - Fix TailwindCSS related server rebuild issue [`6c68142`](https://github.com/gohugoio/hugo/commit/6c68142cc) [@&#8203;bep](https://github.com/bep) [#&#8203;13316](https://github.com/gohugoio/hugo/issues/13316) - Fix some server rebuild issues for non-HTML custom output formats [`cd7dc7a`](https://github.com/gohugoio/hugo/commit/cd7dc7a37) [@&#8203;bep](https://github.com/bep) [#&#8203;13014](https://github.com/gohugoio/hugo/issues/13014) - Fix cascade with overlapping sections [`bb7b3d3`](https://github.com/gohugoio/hugo/commit/bb7b3d3cd) [@&#8203;bep](https://github.com/bep) [#&#8203;12465](https://github.com/gohugoio/hugo/issues/12465) - markup/goldmark: Fix typo in func comment [`f704d75`](https://github.com/gohugoio/hugo/commit/f704d7569) [@&#8203;chalin](https://github.com/chalin) ##### Improvements - Don't re-render aliases on server rebuilds [`778f0d9`](https://github.com/gohugoio/hugo/commit/778f0d900) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Remove leading whitespaces produced by Youtube shortcode [`13b208e`](https://github.com/gohugoio/hugo/commit/13b208e2f) [@&#8203;alex-shpak](https://github.com/alex-shpak) - resources: Remove debug statement [`33b46d8`](https://github.com/gohugoio/hugo/commit/33b46d8a4) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13320](https://github.com/gohugoio/hugo/issues/13320) - markup/goldmark: Trim space from blockquote render hook text [`e08d9af`](https://github.com/gohugoio/hugo/commit/e08d9af21) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13302](https://github.com/gohugoio/hugo/issues/13302) - parser/pageparser: Don't allow parameters after closing tag in shortcodes [`c939c33`](https://github.com/gohugoio/hugo/commit/c939c33fd) [@&#8203;guilhas07](https://github.com/guilhas07) - tpl/tplimpl: Improve shortcode test coverage [`873a5cd`](https://github.com/gohugoio/hugo/commit/873a5cda1) [@&#8203;jmooring](https://github.com/jmooring) - tpl/tplimpl: Deprecate gist shortcode [`f42a4b6`](https://github.com/gohugoio/hugo/commit/f42a4b6af) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13211](https://github.com/gohugoio/hugo/issues/13211) - resources: Remove conditional used for debugging [`a563783`](https://github.com/gohugoio/hugo/commit/a5637831c) [@&#8203;bep](https://github.com/bep) - resources: Add responseHeaders option to resources.GetRemote [`68586c8`](https://github.com/gohugoio/hugo/commit/68586c891) [@&#8203;bep](https://github.com/bep) [#&#8203;12521](https://github.com/gohugoio/hugo/issues/12521) - tpl/tplimpl: Skip TestTemplateFuncsExamples on s390x [`51bb2fe`](https://github.com/gohugoio/hugo/commit/51bb2feda) [@&#8203;bep](https://github.com/bep) [#&#8203;13204](https://github.com/gohugoio/hugo/issues/13204) - Make cascade front matter order deterministic [`7f0f50b`](https://github.com/gohugoio/hugo/commit/7f0f50b13) [@&#8203;bep](https://github.com/bep) [#&#8203;12594](https://github.com/gohugoio/hugo/issues/12594) - tpl/tplimpl: Deprecate comment shortcode [`77a8e34`](https://github.com/gohugoio/hugo/commit/77a8e347b) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.142.0`](https://github.com/gohugoio/hugo/releases/tag/v0.142.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.141.0...v0.142.0) This is is mostly a bug fix release. It's a minor and not a patch release because of the image file cache issue fixes (see [#&#8203;13273](https://github.com/gohugoio/hugo/issues/13273) [#&#8203;13272](https://github.com/gohugoio/hugo/issues/13272)). Fixing this required us to break the hashes for many of the generated images so we used this opportunity to simplify how we generate these hashes/image filenames. ##### Bug fixes - Fix render hook's PlainText with typographer extension enabled [`6aa72ac`](https://github.com/gohugoio/hugo/commit/6aa72acaf) [@&#8203;bep](https://github.com/bep) [#&#8203;13286](https://github.com/gohugoio/hugo/issues/13286) [#&#8203;13292](https://github.com/gohugoio/hugo/issues/13292) - Fix build with Go 1.24 [`4b0c194`](https://github.com/gohugoio/hugo/commit/4b0c194fb) [@&#8203;flyn-org](https://github.com/flyn-org) - tpl/tplimpl: Fix context in shortcode error messages [`8de4ffb`](https://github.com/gohugoio/hugo/commit/8de4ffb29) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13279](https://github.com/gohugoio/hugo/issues/13279) - resources: Fix 2 image file cache key issues [`1f5a15a`](https://github.com/gohugoio/hugo/commit/1f5a15aba) [@&#8203;bep](https://github.com/bep) [#&#8203;13273](https://github.com/gohugoio/hugo/issues/13273) [#&#8203;13272](https://github.com/gohugoio/hugo/issues/13272) ##### Improvements - Also handle inline HTML comments [`637995b`](https://github.com/gohugoio/hugo/commit/637995ba8) [@&#8203;bep](https://github.com/bep) - Do not warn on potentially unsafe HTML comments when unsafe=false [`f1de5d2`](https://github.com/gohugoio/hugo/commit/f1de5d2a0) [@&#8203;bep](https://github.com/bep) [#&#8203;13278](https://github.com/gohugoio/hugo/issues/13278) - tpl: Add loading attribute to qr shortcode [`8897113`](https://github.com/gohugoio/hugo/commit/889711366) [@&#8203;nfriedli](https://github.com/nfriedli) ### [`v0.141.0`](https://github.com/gohugoio/hugo/releases/tag/v0.141.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.140.2...v0.141.0) This release adds [try](https://gohugo.io/functions/go-template/try/), a new general mechanism for handling errors within templates, a new [images.Mask](https://gohugo.io/functions/images/mask/) image filter, a new [images.QR](https://gohugo.io/functions/images/qr/) function, a new `alignx` option to control horizontal alignment in [images.Text](https://gohugo.io/functions/images/text/), and more. ##### Note - Adjust error handling in ToMath vs try (note) [`dde9d9d`](https://github.com/gohugoio/hugo/commit/dde9d9d54) [@&#8203;bep](https://github.com/bep) [#&#8203;13239](https://github.com/gohugoio/hugo/issues/13239) - resources: Replace error handling in GetRemote with try (note) [`0918e08`](https://github.com/gohugoio/hugo/commit/0918e087e) [@&#8203;bep](https://github.com/bep) [#&#8203;13216](https://github.com/gohugoio/hugo/issues/13216) - For render hooks, only fallback to HTML (or the defaultOutputFormat) template [`7699336`](https://github.com/gohugoio/hugo/commit/76993369a) [@&#8203;bep](https://github.com/bep) [#&#8203;13242](https://github.com/gohugoio/hugo/issues/13242) ##### Bug fixes - common/paths: Fix docstring [`8b52626`](https://github.com/gohugoio/hugo/commit/8b5262691) [@&#8203;jdbaldry](https://github.com/jdbaldry) - commands: Fix spelling in comment [`60c24fc`](https://github.com/gohugoio/hugo/commit/60c24fc5e) [@&#8203;bep](https://github.com/bep) - Fix branch resource overlapping bundle path [`c5a63a3`](https://github.com/gohugoio/hugo/commit/c5a63a3b4) [@&#8203;bep](https://github.com/bep) [#&#8203;13228](https://github.com/gohugoio/hugo/issues/13228) - templates: Fix handling of multiple defers in the same template [`61d3d20`](https://github.com/gohugoio/hugo/commit/61d3d2012) [@&#8203;bep](https://github.com/bep) [#&#8203;13236](https://github.com/gohugoio/hugo/issues/13236) - Fix NPX issue with TailwindCSS v4 [`cfa0801`](https://github.com/gohugoio/hugo/commit/cfa080181) [@&#8203;bep](https://github.com/bep) [#&#8203;13221](https://github.com/gohugoio/hugo/issues/13221) - Fix server refresh on 404 template changes [`d913f46`](https://github.com/gohugoio/hugo/commit/d913f46a8) [@&#8203;bep](https://github.com/bep) [#&#8203;13209](https://github.com/gohugoio/hugo/issues/13209) ##### Improvements - tpl/tplimpl: Simplify some test assertions [`1fad383`](https://github.com/gohugoio/hugo/commit/1fad3832a) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode [`1191467`](https://github.com/gohugoio/hugo/commit/1191467c0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13214](https://github.com/gohugoio/hugo/issues/13214) - commands: Set up the glboal logger early [`4113707`](https://github.com/gohugoio/hugo/commit/41137077b) [@&#8203;bep](https://github.com/bep) [#&#8203;13265](https://github.com/gohugoio/hugo/issues/13265) - commands: Add --printZero to the config command [`5bb1564`](https://github.com/gohugoio/hugo/commit/5bb156457) [@&#8203;bep](https://github.com/bep) - tpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge [`de7137c`](https://github.com/gohugoio/hugo/commit/de7137cc3) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add BenchmarkWhereMap [`956f915`](https://github.com/gohugoio/hugo/commit/956f915f7) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add BenchmarkSortMap [`a2a4166`](https://github.com/gohugoio/hugo/commit/a2a4166f6) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add Merge benchmark [`39f582f`](https://github.com/gohugoio/hugo/commit/39f582f9f) [@&#8203;bep](https://github.com/bep) - resources/images: Refactor golden image tests to locate them closer to the implementation [`2501de7`](https://github.com/gohugoio/hugo/commit/2501de7aa) [@&#8203;bep](https://github.com/bep) - resources/images: Add some mask tests [`06cc867`](https://github.com/gohugoio/hugo/commit/06cc8673f) [@&#8203;bep](https://github.com/bep) [#&#8203;13244](https://github.com/gohugoio/hugo/issues/13244) - resources/images: Add images.Mask [`71fae99`](https://github.com/gohugoio/hugo/commit/71fae9918) [@&#8203;trickkiste](https://github.com/trickkiste) [#&#8203;13244](https://github.com/gohugoio/hugo/issues/13244) - tpl/tplimpl: Use plain text for image render hook alt attribute [`8af0474`](https://github.com/gohugoio/hugo/commit/8af04745f) [@&#8203;jmooring](https://github.com/jmooring) - resources/images: Add some golden tests for images.QR [`892b491`](https://github.com/gohugoio/hugo/commit/892b49110) [@&#8203;bep](https://github.com/bep) - tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS [`b13d0a6`](https://github.com/gohugoio/hugo/commit/b13d0a68e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13230](https://github.com/gohugoio/hugo/issues/13230) - resources/images: Add some golden tests for images.Text [`d9594a9`](https://github.com/gohugoio/hugo/commit/d9594a96f) [@&#8203;bep](https://github.com/bep) - images.Text: Add "alignx" option for horizontal alignment [`4a5cc2d`](https://github.com/gohugoio/hugo/commit/4a5cc2dd2) [@&#8203;jlskuz](https://github.com/jlskuz) [#&#8203;10849](https://github.com/gohugoio/hugo/issues/10849) - images: Rework the golden tests [`9cad8d3`](https://github.com/gohugoio/hugo/commit/9cad8d38c) [@&#8203;bep](https://github.com/bep) - create: Respect --noBuildLock in hugo new [`2a7bb1c`](https://github.com/gohugoio/hugo/commit/2a7bb1c7c) [@&#8203;bep](https://github.com/bep) - tpl/images: Format the QR hashes as hex [`5f2adad`](https://github.com/gohugoio/hugo/commit/5f2adad2c) [@&#8203;bep](https://github.com/bep) - tpl/images: Add images.QR function [`4ea94c4`](https://github.com/gohugoio/hugo/commit/4ea94c451) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13205](https://github.com/gohugoio/hugo/issues/13205) - Add try [`5d2cbee`](https://github.com/gohugoio/hugo/commit/5d2cbee98) [@&#8203;bep](https://github.com/bep) [#&#8203;9737](https://github.com/gohugoio/hugo/issues/9737) - resources: Add FromOpts for more effective resource creation [`723e3f4`](https://github.com/gohugoio/hugo/commit/723e3f434) [@&#8203;bep](https://github.com/bep) - markup/highlight: Remove noHl option [`2db43f8`](https://github.com/gohugoio/hugo/commit/2db43f841) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9885](https://github.com/gohugoio/hugo/issues/9885) ##### Dependency Updates - deps: Upgrade github.com/gohugoio/hashstructure from 0.1.0 to 0.3.0 [`a2edf04`](https://github.com/gohugoio/hugo/commit/a2edf04c2) [@&#8203;bep](https://github.com/bep) - build(deps): bump golang.org/x/tools from 0.28.0 to 0.29.0 [`f024a50`](https://github.com/gohugoio/hugo/commit/f024a5050) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 [`80704bc`](https://github.com/gohugoio/hugo/commit/80704bc9a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.24.0 to 0.24.2 [`b7b49fb`](https://github.com/gohugoio/hugo/commit/b7b49fb0f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.14.0 to 2.15.0 [`a837976`](https://github.com/gohugoio/hugo/commit/a83797673) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen CLI docs [`88ecc3b`](https://github.com/gohugoio/hugo/commit/88ecc3b75) [@&#8203;bep](https://github.com/bep) - docs: Regen CLI docs [`4462861`](https://github.com/gohugoio/hugo/commit/44628616a) [@&#8203;bep](https://github.com/bep) ##### Build Setup - snap: Always package latest stable version of Go [`3682027`](https://github.com/gohugoio/hugo/commit/3682027a5) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.140.2`](https://github.com/gohugoio/hugo/releases/tag/v0.140.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.140.1...v0.140.2) The timing of this release comes from the security fix in `golang.org/x/net`'s `html.Parse` function. This is used in two places in Hugo: 1. Extracting table of contents from Asciidoctor rendered output. 2. Collecting HTML classes etc. when build stats is [enabled](https://gohugo.io/getting-started/configuration-build/#configure-build-stats) It's a little bit of a stretch to see how this could be exploited in Hugo, but we understand that many want a clean security report. See [this issue](https://github.com/golang/go/issues/70179) for details. ##### What's Changed - Print cli usage of `hugo gen chromastyles` alongside css [`83cec78`](https://github.com/gohugoio/hugo/commit/83cec785c) [@&#8203;diwasrimal](https://github.com/diwasrimal) - build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 [`4e52be8`](https://github.com/gohugoio/hugo/commit/4e52be8b9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - config/allconfig: Fix slice of language configs [`7888ac5`](https://github.com/gohugoio/hugo/commit/7888ac585) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13201](https://github.com/gohugoio/hugo/issues/13201) - config/allconfig: Throw error when output format is not defined [`eb1dbe0`](https://github.com/gohugoio/hugo/commit/eb1dbe070) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13199](https://github.com/gohugoio/hugo/issues/13199) - Fix same resource file published more than once [`77824d7`](https://github.com/gohugoio/hugo/commit/77824d704) [@&#8203;bep](https://github.com/bep) [#&#8203;13164](https://github.com/gohugoio/hugo/issues/13164) - markup/highlight: Add wrapperClass option [`ec0caae`](https://github.com/gohugoio/hugo/commit/ec0caaec7) [@&#8203;bep](https://github.com/bep) - Update README.md [`845b888`](https://github.com/gohugoio/hugo/commit/845b8885d) [@&#8203;bep](https://github.com/bep) ### [`v0.140.1`](https://github.com/gohugoio/hugo/releases/tag/v0.140.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.140.0...v0.140.1) Some bug fixes in the (most likely) last Hugo release of the year. Of some technical interest to some, I can mention that I, [@&#8203;bep](https://github.com/bep), have reworked [hugoreleaser](https://github.com/gohugoio/hugoreleaser) to use YAML (with anchors/aliases) instead of TOML for the release configuration. Have a look at the [end result](https://github.com/gohugoio/hugo/blob/master/hugoreleaser.yaml). ##### What's Changed - Update gocloud and docs for S3-Compatible Endpoints [`e229f4b`](https://github.com/gohugoio/hugo/commit/e229f4b38) [@&#8203;tebriel](https://github.com/tebriel) - js/esbuild: Don't try to resolve packages in /assets marked as external [`0202539`](https://github.com/gohugoio/hugo/commit/020253904) [@&#8203;bep](https://github.com/bep) [#&#8203;13183](https://github.com/gohugoio/hugo/issues/13183) - Fix union, complement, symdiff, and intersect for transient resources [`4a5e940`](https://github.com/gohugoio/hugo/commit/4a5e94087) [@&#8203;bep](https://github.com/bep) [#&#8203;13181](https://github.com/gohugoio/hugo/issues/13181) - release: Add withdeploy deb extended archives [`48a7aee`](https://github.com/gohugoio/hugo/commit/48a7aee96) [@&#8203;bep](https://github.com/bep) [#&#8203;13166](https://github.com/gohugoio/hugo/issues/13166) - common/loggers: Write PrintTimerIfDelayed output to stdErr [`6c583e3`](https://github.com/gohugoio/hugo/commit/6c583e322) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13171](https://github.com/gohugoio/hugo/issues/13171) - build(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1 [`5d64b49`](https://github.com/gohugoio/hugo/commit/5d64b492f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - hugolib: Fix fallbacks for menu entry Name and Title [`b3f3294`](https://github.com/gohugoio/hugo/commit/b3f32949c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13161](https://github.com/gohugoio/hugo/issues/13161) ### [`v0.140.0`](https://github.com/gohugoio/hugo/releases/tag/v0.140.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.5...v0.140.0) The big new feature in this release is [js.Batch](https://gohugo.io/functions/js/batch/) – this enables JavaScript bundle groups (e.g. scripts per section) with global code splitting and flexible hooks/runners setup. ##### Bug fixes - Fix panic on server rebuilds when using both base templates and template.Defer [`a5e5be2`](https://github.com/gohugoio/hugo/commit/a5e5be234) [@&#8203;bep](https://github.com/bep) [#&#8203;12963](https://github.com/gohugoio/hugo/issues/12963) - js: Fix js.Batch for multihost setups [`565c30e`](https://github.com/gohugoio/hugo/commit/565c30eac) [@&#8203;bep](https://github.com/bep) [#&#8203;13151](https://github.com/gohugoio/hugo/issues/13151) - parser/pageparser: Fix Org Mode summary delimiter assignment [`48dd6a9`](https://github.com/gohugoio/hugo/commit/48dd6a918) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13152](https://github.com/gohugoio/hugo/issues/13152) - Fix a rebuild on resource rename case [`744b856`](https://github.com/gohugoio/hugo/commit/744b8566e) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Fix title attribute in details shortcode [`a32c889`](https://github.com/gohugoio/hugo/commit/a32c889a7) [@&#8203;jmooring](https://github.com/jmooring) - Fix Sass imports on the form index.{scss,sass} [`5ab38de`](https://github.com/gohugoio/hugo/commit/5ab38de36) [@&#8203;bep](https://github.com/bep) [#&#8203;13123](https://github.com/gohugoio/hugo/issues/13123) - markup/goldmark: Fix blockquote render hook text parsing [`3437340`](https://github.com/gohugoio/hugo/commit/34373407b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12913](https://github.com/gohugoio/hugo/issues/12913) [#&#8203;13119](https://github.com/gohugoio/hugo/issues/13119) ##### Improvements - js/esbuild: Add missing es2024 target [`5c80cb0`](https://github.com/gohugoio/hugo/commit/5c80cb0d2) [@&#8203;bep](https://github.com/bep) - js/esbuild: Add runners after scripts [`7de5317`](https://github.com/gohugoio/hugo/commit/7de5317ae) [@&#8203;bep](https://github.com/bep) - js/esbuild: Batch: Avoid nil Instances slice [`4cbd4ef`](https://github.com/gohugoio/hugo/commit/4cbd4ef99) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Update youtube shortcode [`852d868`](https://github.com/gohugoio/hugo/commit/852d86854) [@&#8203;jmooring](https://github.com/jmooring) - tpl/tplimpl: Update details shortcode [`1e34e5b`](https://github.com/gohugoio/hugo/commit/1e34e5b26) [@&#8203;jmooring](https://github.com/jmooring) - tpl/collections: Allow querify to accept a map argument [`641d261`](https://github.com/gohugoio/hugo/commit/641d2616c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13131](https://github.com/gohugoio/hugo/issues/13131) - js/esbuild: Build groups in order of their ID [`a834bb9`](https://github.com/gohugoio/hugo/commit/a834bb9f7) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Add details shortcode [`4f130f6`](https://github.com/gohugoio/hugo/commit/4f130f6e4) [@&#8203;racehd](https://github.com/racehd) - Write all logging (INFO, WARN, ERROR) to stderr [`9dfa112`](https://github.com/gohugoio/hugo/commit/9dfa11261) [@&#8203;bep](https://github.com/bep) [#&#8203;13074](https://github.com/gohugoio/hugo/issues/13074) - js/esbuild: Add platform option [`ec1933f`](https://github.com/gohugoio/hugo/commit/ec1933f79) [@&#8203;bep](https://github.com/bep) [#&#8203;13136](https://github.com/gohugoio/hugo/issues/13136) - Add config option disableDefaultLanguageRedirect [`75ad9cd`](https://github.com/gohugoio/hugo/commit/75ad9cdaa) [@&#8203;bep](https://github.com/bep) [#&#8203;13133](https://github.com/gohugoio/hugo/issues/13133) - Add js.Batch [`e293e7c`](https://github.com/gohugoio/hugo/commit/e293e7ca6) [@&#8203;bep](https://github.com/bep) [#&#8203;12626](https://github.com/gohugoio/hugo/issues/12626) [#&#8203;7499](https://github.com/gohugoio/hugo/issues/7499) [#&#8203;9978](https://github.com/gohugoio/hugo/issues/9978) [#&#8203;12879](https://github.com/gohugoio/hugo/issues/12879) [#&#8203;13113](https://github.com/gohugoio/hugo/issues/13113) [#&#8203;13116](https://github.com/gohugoio/hugo/issues/13116) - Upgrade to Go 1.23.4 [`6be2530`](https://github.com/gohugoio/hugo/commit/6be253000) [@&#8203;bep](https://github.com/bep) [#&#8203;13130](https://github.com/gohugoio/hugo/issues/13130) - Remove some old and unused shell scripts [`989b299`](https://github.com/gohugoio/hugo/commit/989b299b5) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0 [`157d864`](https://github.com/gohugoio/hugo/commit/157d86414) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.27.0 to 0.28.0 [`947e4e6`](https://github.com/gohugoio/hugo/commit/947e4e66b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/hairyhenderson/go-codeowners [`5f89786`](https://github.com/gohugoio/hugo/commit/5f897868c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 [`7b69218`](https://github.com/gohugoio/hugo/commit/7b6921848) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.139.5`](https://github.com/gohugoio/hugo/releases/tag/v0.139.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.4...v0.139.5) This is a release created for technical reasons, see [#&#8203;13147](https://github.com/gohugoio/hugo/issues/13147) It's the same as <https://github.com/gohugoio/hugo/releases/tag/v0.139.4> -- go there for release archives. ### [`v0.139.4`](https://github.com/gohugoio/hugo/releases/tag/v0.139.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.3...v0.139.4) This release contains a security fix. See this [Security Advisory](https://github.com/gohugoio/hugo/security/advisories/GHSA-c2xf-9v2r-r2rx) for details. Note that this is only relevant if you don't trust your content (e.g. Markdown) files. ##### What's Changed - tpl/tplimpl: Escape Markdown attributes in render hooks and shortcodes [`54398f8`](https://github.com/gohugoio/hugo/commit/54398f8d5) [@&#8203;jmooring](https://github.com/jmooring) - deps: Upgrade github.com/bep/godartsass/v2 v2.3.1 => v2.3.2 [`b8c15f2`](https://github.com/gohugoio/hugo/commit/b8c15f245) [@&#8203;bep](https://github.com/bep) - common/maps: Simplify TestScratchSetInMap/DeleteInMap [`d0dc518`](https://github.com/gohugoio/hugo/commit/d0dc51884) [@&#8203;alexandear](https://github.com/alexandear) - markup/tableofcontents: Cast Fragments.ToHTML args to int [`b529859`](https://github.com/gohugoio/hugo/commit/b52985900) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13107](https://github.com/gohugoio/hugo/issues/13107) ### [`v0.139.3`](https://github.com/gohugoio/hugo/releases/tag/v0.139.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.2...v0.139.3) ##### What's Changed - Fix server edits of resources included in shortcode/hooks [`c1dc35d`](https://github.com/gohugoio/hugo/commit/c1dc35dd7) [@&#8203;bep](https://github.com/bep) [#&#8203;13093](https://github.com/gohugoio/hugo/issues/13093) - commands: Fix flaw in the livereload logic [`dea158c`](https://github.com/gohugoio/hugo/commit/dea158c88) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/bep/godartsass/v2 from 2.3.0 to 2.3.1 [`7e130e3`](https://github.com/gohugoio/hugo/commit/7e130e34f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tetratelabs/wazero from 1.8.1 to 1.8.2 [`88b7868`](https://github.com/gohugoio/hugo/commit/88b7868fb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - Fix some typos [`fc3d1cb`](https://github.com/gohugoio/hugo/commit/fc3d1cbad) [@&#8203;thirdkeyword](https://github.com/thirdkeyword) ### [`v0.139.2`](https://github.com/gohugoio/hugo/releases/tag/v0.139.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.1...v0.139.2) **Note** that this is the second patch release today. See [v0.139.1](https://github.com/gohugoio/hugo/releases/tag/v0.139.1). We had to do this release to get the Hugo Docs build running. #### What's Changed - modules: Skip empty lines in modules.txt [`0ab8189`](https://github.com/gohugoio/hugo/commit/0ab81896d) [@&#8203;bep](https://github.com/bep) [#&#8203;13084](https://github.com/gohugoio/hugo/issues/13084) ### [`v0.139.1`](https://github.com/gohugoio/hugo/releases/tag/v0.139.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.139.0...v0.139.1) #### What's Changed - Revert "build(deps): bump github.com/tdewolff/minify/v2 from 2.20.37 to 2.21.1" [`aa3dd19`](https://github.com/gohugoio/hugo/commit/aa3dd197f) [@&#8203;bep](https://github.com/bep) [#&#8203;13082](https://github.com/gohugoio/hugo/issues/13082) - minifiers: Add failing test for upstream bug [`5a50eee`](https://github.com/gohugoio/hugo/commit/5a50eee9d) [@&#8203;bep](https://github.com/bep) [#&#8203;13082](https://github.com/gohugoio/hugo/issues/13082) - dartsass: Fix nilpointer on Close when Dart Sass isn't installed [`8d017a6`](https://github.com/gohugoio/hugo/commit/8d017a60f) [@&#8203;bep](https://github.com/bep) [#&#8203;13076](https://github.com/gohugoio/hugo/issues/13076) ### [`v0.139.0`](https://github.com/gohugoio/hugo/releases/tag/v0.139.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.138.0...v0.139.0) This release is mostly about removing code that has been deprecated for a long time. This has been shown as an `ERROR` in the build log and failed the build for at least the last 6 minor Hugo versions, in most cases much longer. But this is also a full dependency refresh, and there are also some new stuff. For one, we added a `-O` flag to `hugo server` to open up the site in your browser after start. This is now my ([@&#8203;bep](https://github.com/bep)) shortcut to start the server: ```zsh function h() { hugo server -F -O -N -D } ``` ##### Note - dartsass: Remove support for v1 of the protocol/binary (note) [`1fd845e`](https://github.com/gohugoio/hugo/commit/1fd845eee) [@&#8203;bep](https://github.com/bep) - Remove deprecations <= v0.122.0 (note) [`ad43d13`](https://github.com/gohugoio/hugo/commit/ad43d137d) [@&#8203;bep](https://github.com/bep) ##### Bug fixes - dartsass: Fix error message [`8d92042`](https://github.com/gohugoio/hugo/commit/8d92042ab) [@&#8203;bep](https://github.com/bep) [#&#8203;13065](https://github.com/gohugoio/hugo/issues/13065) - Fix extra newline/paragraphs issue with .RenderShortcodes [`d4de780`](https://github.com/gohugoio/hugo/commit/d4de780ed) [@&#8203;bep](https://github.com/bep) [#&#8203;13051](https://github.com/gohugoio/hugo/issues/13051) - markup/goldmark: Fix typo in error message [`e79ee0d`](https://github.com/gohugoio/hugo/commit/e79ee0d51) [@&#8203;deining](https://github.com/deining) ##### Improvements - Make sure term is always set [`e917401`](https://github.com/gohugoio/hugo/commit/e917401c7) [@&#8203;bep](https://github.com/bep) [#&#8203;13063](https://github.com/gohugoio/hugo/issues/13063) - dartsass: Add silenceDeprecations option [`3b6eaf9`](https://github.com/gohugoio/hugo/commit/3b6eaf9b1) [@&#8203;bep](https://github.com/bep) [#&#8203;13045](https://github.com/gohugoio/hugo/issues/13045) - Run go mod tidy [`5e3133a`](https://github.com/gohugoio/hugo/commit/5e3133a7d) [@&#8203;bep](https://github.com/bep) - commands: Add -O flag to server to open browser [`ac6962d`](https://github.com/gohugoio/hugo/commit/ac6962d28) [@&#8203;bep](https://github.com/bep) [#&#8203;13040](https://github.com/gohugoio/hugo/issues/13040) - Preserve input type. [`23d21b0`](https://github.com/gohugoio/hugo/commit/23d21b0d1) [@&#8203;KN4CK3R](https://github.com/KN4CK3R) - server: Strip ANSI escape codes from browser error log [`ce9cf88`](https://github.com/gohugoio/hugo/commit/ce9cf882a) [@&#8203;bep](https://github.com/bep) [#&#8203;13037](https://github.com/gohugoio/hugo/issues/13037) - parser/metadecoders: Add benchmark [`8aba6dc`](https://github.com/gohugoio/hugo/commit/8aba6dc66) [@&#8203;bep](https://github.com/bep) - Add site.Store and hugo.Store and Shortcode.Store [`a7df536`](https://github.com/gohugoio/hugo/commit/a7df536a5) [@&#8203;bep](https://github.com/bep) [#&#8203;13021](https://github.com/gohugoio/hugo/issues/13021) - markup/goldmark: Improve the raw HTML omitted warning [`2b97a2a`](https://github.com/gohugoio/hugo/commit/2b97a2a8b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13023](https://github.com/gohugoio/hugo/issues/13023) ##### Dependency Updates - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`eb29814`](https://github.com/gohugoio/hugo/commit/eb298144b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.191.0 to 0.206.0 [`61e2ce2`](https://github.com/gohugoio/hugo/commit/61e2ce2a4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.30.3 to 1.32.4 [`2d503f8`](https://github.com/gohugoio/hugo/commit/2d503f82a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 [`3a6b2e6`](https://github.com/gohugoio/hugo/commit/3a6b2e6b1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/bep/imagemeta v0.8.1 => v0.8.3 [`6bde8ab`](https://github.com/gohugoio/hugo/commit/6bde8abaa) [@&#8203;bep](https://github.com/bep) - build(deps): bump golang.org/x/tools from 0.26.0 to 0.27.0 [`2c54c32`](https://github.com/gohugoio/hugo/commit/2c54c3298) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.37 to 2.21.1 [`7a2f04e`](https://github.com/gohugoio/hugo/commit/7a2f04ee8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/fatih/color from 1.17.0 to 1.18.0 [`7921777`](https://github.com/gohugoio/hugo/commit/7921777da) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.21.0 to 0.22.0 [`33e964d`](https://github.com/gohugoio/hugo/commit/33e964d40) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/yuin/goldmark v1.7.4 => v1.7.8 [`588c901`](https://github.com/gohugoio/hugo/commit/588c9019c) [@&#8203;bep](https://github.com/bep) [#&#8203;12958](https://github.com/gohugoio/hugo/issues/12958) - build(deps): bump golang.org/x/sync from 0.8.0 to 0.9.0 [`46e1705`](https://github.com/gohugoio/hugo/commit/46e17053c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/hairyhenderson/go-codeowners [`cb6580d`](https://github.com/gohugoio/hugo/commit/cb6580d00) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen CLI docs [`66dd6ec`](https://github.com/gohugoio/hugo/commit/66dd6ecab) [@&#8203;bep](https://github.com/bep) - docs: Regenerate CLI docs [`58a3c91`](https://github.com/gohugoio/hugo/commit/58a3c91a7) [@&#8203;bep](https://github.com/bep) ##### Build Setup - release: Add missing withdeploy archive for arm64 Linux [`f7fc6cc`](https://github.com/gohugoio/hugo/commit/f7fc6ccd5) [@&#8203;bep](https://github.com/bep) [#&#8203;13029](https://github.com/gohugoio/hugo/issues/13029) ### [`v0.138.0`](https://github.com/gohugoio/hugo/releases/tag/v0.138.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.137.1...v0.138.0) ##### What's Changed - Fix concurrent map read and map write in short page lookups [`95e2d5b`](https://github.com/gohugoio/hugo/commit/95e2d5beb) [@&#8203;bep](https://github.com/bep) [#&#8203;13019](https://github.com/gohugoio/hugo/issues/13019) - Alias Page.Scratch to Page.Store (note) [`2c3efc8`](https://github.com/gohugoio/hugo/commit/2c3efc810) [@&#8203;bep](https://github.com/bep) [#&#8203;13016](https://github.com/gohugoio/hugo/issues/13016) ### [`v0.137.1`](https://github.com/gohugoio/hugo/releases/tag/v0.137.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.137.0...v0.137.1) ##### What's Changed - common/hugo: Add withdeploy to the version string printed in hugo version [`ca4fc58`](https://github.com/gohugoio/hugo/commit/ca4fc587c) [@&#8203;bep](https://github.com/bep) - markup: Goldmark log "Raw HTML omitted" warning also for inline HTML [`4faaaf9`](https://github.com/gohugoio/hugo/commit/4faaaf9c2) [@&#8203;bep](https://github.com/bep) [#&#8203;13013](https://github.com/gohugoio/hugo/issues/13013) - build: Add missing withdeploy archive for Windows [`94b46c3`](https://github.com/gohugoio/hugo/commit/94b46c36b) [@&#8203;bep](https://github.com/bep) [#&#8203;13009](https://github.com/gohugoio/hugo/issues/13009) - commands: Print the "deploy not available" error message even if flags provided [`2b0b3b8`](https://github.com/gohugoio/hugo/commit/2b0b3b858) [@&#8203;bep](https://github.com/bep) [#&#8203;13012](https://github.com/gohugoio/hugo/issues/13012) - tpl/tplimpl: Create an embedded comment shortcode [`801035b`](https://github.com/gohugoio/hugo/commit/801035bb7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;13010](https://github.com/gohugoio/hugo/issues/13010) ### [`v0.137.0`](https://github.com/gohugoio/hugo/releases/tag/v0.137.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.5...v0.137.0) Note that we have no longer build the [deploy feature](https://gohugo.io/hosting-and-deployment/hugo-deploy/) in the standard and extended archives. If you need that, download archives with `withdeploy` in the filename. See [instalation](https://gohugo.io/installation/) for details. You can read [#&#8203;12994](https://github.com/gohugoio/hugo/issues/12994) for more on the motivation behind this, but for one, it shaves off about 40% of the binary size. ##### Bug fixes - Fix stale pages on rebuilds in GetPage with short refs [`30d9aea`](https://github.com/gohugoio/hugo/commit/30d9aea86) [@&#8203;bep](https://github.com/bep) [#&#8203;13004](https://github.com/gohugoio/hugo/issues/13004) - Fix some RenderShortcodes error cases [`1f23b49`](https://github.com/gohugoio/hugo/commit/1f23b4949) [@&#8203;bep](https://github.com/bep) [#&#8203;12854](https://github.com/gohugoio/hugo/issues/12854) [#&#8203;12998](https://github.com/gohugoio/hugo/issues/12998) - dynacache: Fix potential deadlocks on panics in GetOrCreate [`e10915f`](https://github.com/gohugoio/hugo/commit/e10915f80) [@&#8203;bep](https://github.com/bep) ##### Improvements - Do not watch directories with no mounted files in it [`fcdc454`](https://github.com/gohugoio/hugo/commit/fcdc454cc) [@&#8203;bep](https://github.com/bep) [#&#8203;12912](https://github.com/gohugoio/hugo/issues/12912) [#&#8203;13007](https://github.com/gohugoio/hugo/issues/13007) - markup/goldmark: Only log Raw HTML omitted WARN on block entering [`6cf23bf`](https://github.com/gohugoio/hugo/commit/6cf23bf88) [@&#8203;bep](https://github.com/bep) [#&#8203;12997](https://github.com/gohugoio/hugo/issues/12997) - markup/goldmark: Add warning (using Warnidf) on Goldmark <!-- raw HTML omitted --> [`62a96ce`](https://github.com/gohugoio/hugo/commit/62a96cef7) [@&#8203;bep](https://github.com/bep) [#&#8203;12997](https://github.com/gohugoio/hugo/issues/12997) - resources: Address Dart Sass deprecation of global built-in functions [`889308d`](https://github.com/gohugoio/hugo/commit/889308dd8) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12961](https://github.com/gohugoio/hugo/issues/12961) - github: Adjust test workflow to install Dart Sass v1.80.3 [`72352f2`](https://github.com/gohugoio/hugo/commit/72352f205) [@&#8203;jmooring](https://github.com/jmooring) - Build without the deploy feature by default [`89bd025`](https://github.com/gohugoio/hugo/commit/89bd025eb) [@&#8203;bep](https://github.com/bep) [#&#8203;12994](https://github.com/gohugoio/hugo/issues/12994) [#&#8203;12994](https://github.com/gohugoio/hugo/issues/12994) ##### Dependency Updates - deps: Upgrade github.com/bep/godartsass/v2 v2.1.0 => v2.2.0 [`e3304db`](https://github.com/gohugoio/hugo/commit/e3304db61) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/bep/lazycache v0.6.0 => v0.7.0 [`62567d3`](https://github.com/gohugoio/hugo/commit/62567d382) [@&#8203;bep](https://github.com/bep) ##### Documentation - Update README.md [`5fc1639`](https://github.com/gohugoio/hugo/commit/5fc163903) [@&#8203;jmooring](https://github.com/jmooring) - Update README.md [`1ec6fa3`](https://github.com/gohugoio/hugo/commit/1ec6fa36c) [@&#8203;bep](https://github.com/bep) ### [`v0.136.5`](https://github.com/gohugoio/hugo/releases/tag/v0.136.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.4...v0.136.5) Fix stuck server error issues [`cb6e27b`](https://github.com/gohugoio/hugo/commit/cb6e27b32) [@&#8203;bep](https://github.com/bep) [#&#8203;11378](https://github.com/gohugoio/hugo/issues/11378) ### [`v0.136.4`](https://github.com/gohugoio/hugo/releases/tag/v0.136.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.3...v0.136.4) ##### What's Changed - tpl/transform: Revert unmarshal whitespace removal [`5bbe95f`](https://github.com/gohugoio/hugo/commit/5bbe95f9c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12977](https://github.com/gohugoio/hugo/issues/12977) ### [`v0.136.3`](https://github.com/gohugoio/hugo/releases/tag/v0.136.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.2...v0.136.3) ##### What's Changed - docker: Fix permission issues in Dockerfile [`88d598a`](https://github.com/gohugoio/hugo/commit/88d598a04) [@&#8203;dvdksn](https://github.com/dvdksn) [#&#8203;12971](https://github.com/gohugoio/hugo/issues/12971) [#&#8203;12970](https://github.com/gohugoio/hugo/issues/12970) - Make sure that HugoSites is always closed when done [`352be5b`](https://github.com/gohugoio/hugo/commit/352be5ba8) [@&#8203;bep](https://github.com/bep) - tpl/strings: Add TrimSpace function [`d37606d`](https://github.com/gohugoio/hugo/commit/d37606d2c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12962](https://github.com/gohugoio/hugo/issues/12962) - common/herrors: Fix the deferred error message cleaner regexp [`f5e54d9`](https://github.com/gohugoio/hugo/commit/f5e54d9c7) [@&#8203;bep](https://github.com/bep) - tpl/transform: Don't fail on "no data to transform" [`42f37b4`](https://github.com/gohugoio/hugo/commit/42f37b4e9) [@&#8203;bep](https://github.com/bep) [#&#8203;12964](https://github.com/gohugoio/hugo/issues/12964) ### [`v0.136.2`](https://github.com/gohugoio/hugo/releases/tag/v0.136.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.1...v0.136.2) ##### What's Changed - docker: Fix Dart Sass ARM64 arch mismatch, /cache permissions [`b5852d0`](https://github.com/gohugoio/hugo/commit/b5852d0e6) [@&#8203;dvdksn](https://github.com/dvdksn) [#&#8203;12956](https://github.com/gohugoio/hugo/issues/12956) [#&#8203;12957](https://github.com/gohugoio/hugo/issues/12957) [#&#8203;12960](https://github.com/gohugoio/hugo/issues/12960) ### [`v0.136.1`](https://github.com/gohugoio/hugo/releases/tag/v0.136.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.136.0...v0.136.1) ##### What's Changed - Never sanitize when url set in front matter [`e4ad0c5`](https://github.com/gohugoio/hugo/commit/e4ad0c527) [@&#8203;bep](https://github.com/bep) [#&#8203;12954](https://github.com/gohugoio/hugo/issues/12954) - Remove erroneously permalink validation [`a2f666b`](https://github.com/gohugoio/hugo/commit/a2f666b58) [@&#8203;bep](https://github.com/bep) [#&#8203;12948](https://github.com/gohugoio/hugo/issues/12948) - create/skeletons: Add delimiters to archetype front matter [`b1b3bbc`](https://github.com/gohugoio/hugo/commit/b1b3bbcdb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12945](https://github.com/gohugoio/hugo/issues/12945) ### [`v0.136.0`](https://github.com/gohugoio/hugo/releases/tag/v0.136.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.135.0...v0.136.0) **Note** that we have much improved the [Dockerfile](https://github.com/gohugoio/hugo/blob/master/Dockerfile) and [image](https://github.com/gohugoio/hugo/pkgs/container/hugo) this release. But this also means a slightly different way of setting it up. Improved [documentation](https://github.com/gohugoio/hugoDocs/issues/2727#issuecomment-2416161247) will come soon, but see [`41f69a7`](https://github.com/gohugoio/hugo/commit/41f69a725) [#&#8203;12920](https://github.com/gohugoio/hugo/issues/12920) [#&#8203;12885](https://github.com/gohugoio/hugo/issues/12885) [#&#8203;12921](https://github.com/gohugoio/hugo/issues/12921). ##### Bug fixes - config: Fix uglyurls map parse [`ea633dd`](https://github.com/gohugoio/hugo/commit/ea633dd80) [@&#8203;akkuman](https://github.com/akkuman) [#&#8203;12926](https://github.com/gohugoio/hugo/issues/12926) ##### Improvements - resources/page: Adjust the permalinks colon implementation a little [`6e1c5b6`](https://github.com/gohugoio/hugo/commit/6e1c5b61b) [@&#8203;bep](https://github.com/bep) [#&#8203;12918](https://github.com/gohugoio/hugo/issues/12918) - resources/page: Allow colons in permalinks to be escaped [`e7d0757`](https://github.com/gohugoio/hugo/commit/e7d0757f9) [@&#8203;n1xx1](https://github.com/n1xx1) [#&#8203;12918](https://github.com/gohugoio/hugo/issues/12918) - commands: Use consistent style when describing subcommands [`6b5e117`](https://github.com/gohugoio/hugo/commit/6b5e117a1) [@&#8203;Hasaber8](https://github.com/Hasaber8) [#&#8203;12897](https://github.com/gohugoio/hugo/issues/12897) - config: Imrove uglyurls section test [`21366e0`](https://github.com/gohugoio/hugo/commit/21366e041) [@&#8203;bep](https://github.com/bep) [#&#8203;12926](https://github.com/gohugoio/hugo/issues/12926) - create/skeletons: Honor --format flag when creating default archetype [`57151a5`](https://github.com/gohugoio/hugo/commit/57151a5e9) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12666](https://github.com/gohugoio/hugo/issues/12666) - hugolib: Make .Site.Author deprecation warning clearer [`5bb22b6`](https://github.com/gohugoio/hugo/commit/5bb22b6b4) [@&#8203;jvns](https://github.com/jvns) [#&#8203;12269](https://github.com/gohugoio/hugo/issues/12269) - ci: Build multi-platform image with cross-compilation [`4a79956`](https://github.com/gohugoio/hugo/commit/4a7995627) [@&#8203;dvdksn](https://github.com/dvdksn) - tpl/tplimpl: Trim descriptions rather than just chomp [`0398458`](https://github.com/gohugoio/hugo/commit/039845804) [@&#8203;chalin](https://github.com/chalin) - tailwind: Pin Tailwind 4 test to alpha 26 or later [`5b0b663`](https://github.com/gohugoio/hugo/commit/5b0b663ec) [@&#8203;jmooring](https://github.com/jmooring) - resources/page: Treat null dates as zero dates [`3f68309`](https://github.com/gohugoio/hugo/commit/3f6830914) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12906](https://github.com/gohugoio/hugo/issues/12906) - resources/page: Improve front matter date validation [`ab03588`](https://github.com/gohugoio/hugo/commit/ab03588db) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12898](https://github.com/gohugoio/hugo/issues/12898) - commands: Add "hugo build" as an alias for "hugo" [`0450d69`](https://github.com/gohugoio/hugo/commit/0450d69fc) [@&#8203;bep](https://github.com/bep) [#&#8203;11391](https://github.com/gohugoio/hugo/issues/11391) - markup/goldmark: Change default cell alignment in table render hook [`1158e63`](https://github.com/gohugoio/hugo/commit/1158e6307) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12886](https://github.com/gohugoio/hugo/issues/12886) - tests: Address deprecation warnings and errors [`d1ba52f`](https://github.com/gohugoio/hugo/commit/d1ba52f3c) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - build(deps): bump github.com/tetratelabs/wazero from 1.8.0 to 1.8.1 [`4985be1`](https://github.com/gohugoio/hugo/commit/4985be1a4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.20.0 to 0.21.0 [`db653a8`](https://github.com/gohugoio/hugo/commit/db653a848) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark-emoji from 1.0.3 to 1.0.4 [`05bbd2c`](https://github.com/gohugoio/hugo/commit/05bbd2c51) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.23.0 to 0.26.0 [`9b63552`](https://github.com/gohugoio/hugo/commit/9b635522e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/rogpeppe/go-internal from 1.12.0 to 1.13.1 [`3223a65`](https://github.com/gohugoio/hugo/commit/3223a65c9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.23.1 to 0.24.0 [`bc6fc47`](https://github.com/gohugoio/hugo/commit/bc6fc4772) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/hairyhenderson/go-codeowners [`ffb41d1`](https://github.com/gohugoio/hugo/commit/ffb41d111) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - circleci: Use default docker image [`5db27b1`](https://github.com/gohugoio/hugo/commit/5db27b19c) [@&#8203;bep](https://github.com/bep) - docs: Regen CLI docs [`b7d62d7`](https://github.com/gohugoio/hugo/commit/b7d62d76c) [@&#8203;bep](https://github.com/bep) ### [`v0.135.0`](https://github.com/gohugoio/hugo/releases/tag/v0.135.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.134.3...v0.135.0) This is a small release, the main motivation was to finally ... drum roll ... get a tagged [Hugo Docker image](https://github.com/gohugoio/hugo/pkgs/container/hugo/280590856?tag=v0.135.0) published. Big thanks to [@&#8203;bmanth60](https://github.com/bmanth60) for the tip that solved this issue. ##### Improvements - resources/page: Validate predefined front matter dates [`4c02a52`](https://github.com/gohugoio/hugo/commit/4c02a52f7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;10717](https://github.com/gohugoio/hugo/issues/10717) - tailwind: Pin Tailwind 4 test to alpha 24 [`da72ac2`](https://github.com/gohugoio/hugo/commit/da72ac2db) [@&#8203;bep](https://github.com/bep) [#&#8203;12880](https://github.com/gohugoio/hugo/issues/12880) - tpl/compare: Use any data type for compare.Conditional condition [`0ea796d`](https://github.com/gohugoio/hugo/commit/0ea796dad) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - build(deps): bump golang.org/x/mod from 0.19.0 to 0.21.0 [`12c9ce3`](https://github.com/gohugoio/hugo/commit/12c9ce34b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/helpers from 0.4.0 to 0.5.0 [`47b0555`](https://github.com/gohugoio/hugo/commit/47b055589) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.28.0 to 0.29.0 [`e56ea40`](https://github.com/gohugoio/hugo/commit/e56ea4066) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.19.0 to 0.20.0 [`578442f`](https://github.com/gohugoio/hugo/commit/578442f89) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/gobuffalo/flect v1.0.2 => v1.0.3 [`1e690c0`](https://github.com/gohugoio/hugo/commit/1e690c0f2) [@&#8203;khayyamsaleem](https://github.com/khayyamsaleem) [#&#8203;12827](https://github.com/gohugoio/hugo/issues/12827) ##### Build Setup - github: Trigger image workflow on release.published [`0d390d7`](https://github.com/gohugoio/hugo/commit/0d390d7eb) [@&#8203;bep](https://github.com/bep) [#&#8203;12753](https://github.com/gohugoio/hugo/issues/12753) ### [`v0.134.3`](https://github.com/gohugoio/hugo/releases/tag/v0.134.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.134.2...v0.134.3) - tpl: Remove RSS deprecation site.Author check [`e07028c`](https://github.com/gohugoio/hugo/commit/e07028cb9) [@&#8203;bep](https://github.com/bep) - modules: Improve console output on hugo mod init [`22a9f3f`](https://github.com/gohugoio/hugo/commit/22a9f3fc9) [@&#8203;bep](https://github.com/bep) [#&#8203;11458](https://github.com/gohugoio/hugo/issues/11458) - commands: Ignore "module does not exist" errors in hugo mod init [`e363964`](https://github.com/gohugoio/hugo/commit/e363964f2) [@&#8203;bep](https://github.com/bep) [#&#8203;11458](https://github.com/gohugoio/hugo/issues/11458) - Add exclusion for helix .bck files [`c260cb2`](https://github.com/gohugoio/hugo/commit/c260cb28a) [@&#8203;David-Else](https://github.com/David-Else) [#&#8203;12677](https://github.com/gohugoio/hugo/issues/12677) - hugolib: Move hugolib/site\_new\.go into hugolib/site.go [`e079145`](https://github.com/gohugoio/hugo/commit/e07914537) [@&#8203;bep](https://github.com/bep) - libsass: Resolve directory paths to directory index files [`5b442b3`](https://github.com/gohugoio/hugo/commit/5b442b3cc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12851](https://github.com/gohugoio/hugo/issues/12851) - dartsass: Resolve directory paths to directory index files [`2bc2765`](https://github.com/gohugoio/hugo/commit/2bc27657d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12849](https://github.com/gohugoio/hugo/issues/12849) - internal/warpc: Improve the JS plugin API [`28f621d`](https://github.com/gohugoio/hugo/commit/28f621d4a) [@&#8203;bep](https://github.com/bep) ### [`v0.134.2`](https://github.com/gohugoio/hugo/releases/tag/v0.134.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.134.1...v0.134.2) ##### What's Changed - Don't count HTML markup in auto summaries [`3d6baed`](https://github.com/gohugoio/hugo/commit/3d6baedae) [@&#8203;bep](https://github.com/bep) [#&#8203;12837](https://github.com/gohugoio/hugo/issues/12837) ### [`v0.134.1`](https://github.com/gohugoio/hugo/releases/tag/v0.134.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.134.0...v0.134.1) ##### What's Changed - Fix stray end p tag in Obsidian callout titles [`66a3a11`](https://github.com/gohugoio/hugo/commit/66a3a1100) [@&#8203;bep](https://github.com/bep) [#&#8203;12828](https://github.com/gohugoio/hugo/issues/12828) - Make ContentWithoutSummary return Content when summary is fetched from front matter [`8f2eac0`](https://github.com/gohugoio/hugo/commit/8f2eac019) [@&#8203;bep](https://github.com/bep) [#&#8203;12822](https://github.com/gohugoio/hugo/issues/12822) ### [`v0.134.0`](https://github.com/gohugoio/hugo/releases/tag/v0.134.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.133.1...v0.134.0) Hugo v0.134.0 brings render hooks for tables, ContentWithoutSummary, scoped content render and Obsidian style callout alerts. ##### ContentWithoutSummary and scoped content render This release finally brings a [`Page.ContentWithoutSummary`](https://gohugo.io/methods/page/contentwithoutsummary/) method. This has been a long sought after method where the use case is obvious: render the summary with a *more* button that renders the ... content without summary. To enable this we have reimplemented the content summary handling in Hugo. This consolidates the 3 [summary types](https://gohugo.io/content-management/summaries/#comparison) (`auto`, `manual` and `frontmatter`) – they are now all HTML. This is a slightly breaking change (`manual` was plain text before), but the new behaviour should be much less confusing and easier to handle in the templates. If you want plain text, pipe it into `plainify`: `{{ .Summary | plainify }}`. Before this release there was one instance of `.Content` for a given page, it was e.g. not possible to render a page's content slightly different (e.g. different heading levels) on the list pages or the home page. This release enables that with a new `Page.Markup` with an optional `scope` argument. In the list template you would do something like this: ```handlebars {{ range .Pages | first 5 }} {{ with .Markup "list" }} {{ with .Render }} <div> <li>{{ .Summary }}</li> <li>{{ .ContentWithoutSummary }}</li> <li>{{ .WordCount }}</li> <li>etc ...</li> </div> {{ end }} {{ end }} {{ end }} ``` You can think of the custom scope `list` as a cache key: Multiple invocations on the same page with the same scope will give the same return value. You can now pass down some data or configuration to in `.Page.Store` to the templates that render this markup (shortcodes, render hooks), or you can use the new global `hugo.Context.MarkupScope` function made for this purpose: ```handlebars {{ if eq hugo.Context.MarkupScope "list" }} {{/* Render some list markup. */}} {{ else }} {{/* default */}} {{ end }} ``` ##### Render hooks for tables This has been a long sought after feature. Now you can have full control over how you render your Markdown tables with [table render hooks](https://gohugo.io/render-hooks/tables). ##### Obsidian style callout alerts Hugo `v0.133.0` added [blockquote render hooks](https://gohugo.io/render-hooks/blockquotes/) with GitHub styled [alerts](https://gohugo.io/render-hooks/blockquotes/#alerts). We have since then gotten some feedback about extended alert syntax in [Obsidian](https://help.obsidian.md/Editing+and+formatting/Callouts#Change+the+title), and in Hugo `v0.134.0` we now support both. ##### Bug fixes - github: Try to fix "no space left on device" on MacOS [`96afea4`](https://github.com/gohugoio/hugo/commit/96afea4ac) [@&#8203;bep](https://github.com/bep) - Fix deprecation warning for resources.ToCSS [`8fb9335`](https://github.com/gohugoio/hugo/commit/8fb933550) [@&#8203;deining](https://github.com/deining) - output: Fix docshelper template lookup order for AMP pages [`1ecd059`](https://github.com/gohugoio/hugo/commit/1ecd0596a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12797](https://github.com/gohugoio/hugo/issues/12797) ##### Improvements - markup/goldmark/blockquotes: Improve some tests [`504a231`](https://github.com/gohugoio/hugo/commit/504a23184) [@&#8203;bep](https://github.com/bep) - Add support for Obsidian type blockquote alerts [`e651d29`](https://github.com/gohugoio/hugo/commit/e651d2980) [@&#8203;bep](https://github.com/bep) [#&#8203;12805](https://github.com/gohugoio/hugo/issues/12805) [#&#8203;12801](https://github.com/gohugoio/hugo/issues/12801) - Rename hstring.RenderedHTML => hstring.HTML [`4691248`](https://github.com/gohugoio/hugo/commit/469124823) [@&#8203;bep](https://github.com/bep) - Make all renderhook Text methods return template.HTML [`6d97ee7`](https://github.com/gohugoio/hugo/commit/6d97ee711) [@&#8203;bep](https://github.com/bep) - Add Markdown render hooks for tables [`f738669`](https://github.com/gohugoio/hugo/commit/f738669a4) [@&#8203;bep](https://github.com/bep) [#&#8203;9316](https://github.com/gohugoio/hugo/issues/9316) [#&#8203;12811](https://github.com/gohugoio/hugo/issues/12811) - create/skeletons: Clean up lang attribute in base template [`b63f24a`](https://github.com/gohugoio/hugo/commit/b63f24adc) [@&#8203;jmooring](https://github.com/jmooring) - tpl/resources: Improve resources.Concat error message [`a3684c8`](https://github.com/gohugoio/hugo/commit/a3684c836) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;7428](https://github.com/gohugoio/hugo/issues/7428) - tpl: Trim whitespace from google\_analytics.html [`53a8de2`](https://github.com/gohugoio/hugo/commit/53a8de21b) [@&#8203;chalin](https://github.com/chalin) - Add Page.Contents with scope support [`3760926`](https://github.com/gohugoio/hugo/commit/37609262d) [@&#8203;bep](https://github.com/bep) [#&#8203;8680](https://github.com/gohugoio/hugo/issues/8680) [#&#8203;12761](https://github.com/gohugoio/hugo/issues/12761) [#&#8203;12778](https://github.com/gohugoio/hugo/issues/12778) [#&#8203;716](https://github.com/gohugoio/hugo/issues/716) - hugolib: Add a test for overriding \_internal templates [`371246d`](https://github.com/gohugoio/hugo/commit/371246de2) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - deps: Upgrade github.com/bep/golibsass v1.1.1 => v1.2.0 [`2b5c335`](https://github.com/gohugoio/hugo/commit/2b5c335e9) [@&#8203;bep](https://github.com/bep) [#&#8203;12649](https://github.com/gohugoio/hugo/issues/12649) - build(deps): bump github.com/evanw/esbuild from 0.23.0 to 0.23.1 [`12a28ef`](https://github.com/gohugoio/hugo/commit/12a28ef77) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.3 [`4ded32d`](https://github.com/gohugoio/hugo/commit/4ded32d07) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update Dockerfile [`ae38158`](https://github.com/gohugoio/hugo/commit/ae3815898) [@&#8203;offgrid88](https://github.com/offgrid88) ### [`v0.133.1`](https://github.com/gohugoio/hugo/releases/tag/v0.133.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.133.0...v0.133.1) ##### Bug fixes - Fix missing method NameNormalized panic [`5f667f8`](https://github.com/gohugoio/hugo/commit/5f667f879) [@&#8203;bep](https://github.com/bep) [#&#8203;12795](https://github.com/gohugoio/hugo/issues/12795) - config: Fix pagination deprecation messages [`7792392`](https://github.com/gohugoio/hugo/commit/7792392a6) [@&#8203;jmooring](https://github.com/jmooring) - deps: Upgraded github.com/bep/imagemeta v0.8.0 => v0.8.1 [`e1becf1`](https://github.com/gohugoio/hugo/commit/e1becf1df) [@&#8203;bep](https://github.com/bep) [#&#8203;12793](https://github.com/gohugoio/hugo/issues/12793) ### [`v0.133.0`](https://github.com/gohugoio/hugo/releases/tag/v0.133.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.132.2...v0.133.0) ##### What's Changed - Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder [`01008ba`](https://github.com/gohugoio/hugo/commit/01008ba51) [@&#8203;bep](https://github.com/bep) [#&#8203;12776](https://github.com/gohugoio/hugo/issues/12776) - build(deps): bump gocloud.dev from 0.38.0 to 0.39.0 [`53c0ddf`](https://github.com/gohugoio/hugo/commit/53c0ddfcb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/tetratelabs/wazero v1.7.4-0.20240805170331-2b12e189eeec => v1.8.0 [`133eeaf`](https://github.com/gohugoio/hugo/commit/133eeafeb) [@&#8203;bep](https://github.com/bep) - Upgrade to Go 1.23 [`2168c5b`](https://github.com/gohugoio/hugo/commit/2168c5b12) [@&#8203;bep](https://github.com/bep) [#&#8203;12763](https://github.com/gohugoio/hugo/issues/12763) ### [`v0.132.2`](https://github.com/gohugoio/hugo/releases/tag/v0.132.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.132.1...v0.132.2) ##### What's Changed - markup/goldmark/blockquotes: Fix handling of lower/mixed case GitHub alerts [`d72607a`](https://github.com/gohugoio/hugo/commit/d72607adb) [@&#8203;bep](https://github.com/bep) [#&#8203;12767](https://github.com/gohugoio/hugo/issues/12767) - tpl/transform: Don't run ToMath tests in parallel [`8323526`](https://github.com/gohugoio/hugo/commit/83235262d) [@&#8203;bep](https://github.com/bep) [#&#8203;12765](https://github.com/gohugoio/hugo/issues/12765) - resources: Add URI GetRemote error [`5220d37`](https://github.com/gohugoio/hugo/commit/5220d371e) [@&#8203;0xB10C](https://github.com/0xB10C) - loggers: Omit map nil check [`b2d4f67`](https://github.com/gohugoio/hugo/commit/b2d4f67a8) [@&#8203;bep](https://github.com/bep) - github: Add workflow\_dispatch to the Docker workflow [`a99716b`](https://github.com/gohugoio/hugo/commit/a99716bf0) [@&#8203;bep](https://github.com/bep) [#&#8203;12753](https://github.com/gohugoio/hugo/issues/12753) - github: Simplify Docker workflow / only trigger on new tags [`98aa536`](https://github.com/gohugoio/hugo/commit/98aa53648) [@&#8203;bep](https://github.com/bep) [#&#8203;12753](https://github.com/gohugoio/hugo/issues/12753) - github: Simplify Docker workflow [`9231a7f`](https://github.com/gohugoio/hugo/commit/9231a7f11) [@&#8203;bep](https://github.com/bep) [#&#8203;12753](https://github.com/gohugoio/hugo/issues/12753) ### [`v0.132.1`](https://github.com/gohugoio/hugo/releases/tag/v0.132.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.132.0...v0.132.1) ##### What's Changed - github: Adjust image workflow [`77304a3`](https://github.com/gohugoio/hugo/commit/77304a3cd) [@&#8203;bep](https://github.com/bep) [#&#8203;12753](https://github.com/gohugoio/hugo/issues/12753) - Fix nilpointer regression with empty blockquotes [`bef9214`](https://github.com/gohugoio/hugo/commit/bef9214e1) [@&#8203;bep](https://github.com/bep) [#&#8203;12756](https://github.com/gohugoio/hugo/issues/12756) ### [`v0.132.0`](https://github.com/gohugoio/hugo/releases/tag/v0.132.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.131.0...v0.132.0) Server-side [math rendering](https://gohugo.io/functions/transform/tomath/) using KaTeX with Markdown render hooks support, [blockquote Markdown render hooks](https://gohugo.io/render-hooks/blockquotes/) with [GitHub style alerts](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts) syntax support, and more. ##### Bug fixes - Improve Katex error handling and fix handling of large expressions [`e1e1baa`](https://github.com/gohugoio/hugo/commit/e1e1baa1b) [@&#8203;bep](https://github.com/bep) [#&#8203;12748](https://github.com/gohugoio/hugo/issues/12748) - Fix compare of uints and ints in eq, gt etc. [`fbfccb3`](https://github.com/gohugoio/hugo/commit/fbfccb394) [@&#8203;bep](https://github.com/bep) [#&#8203;12733](https://github.com/gohugoio/hugo/issues/12733) - Fix deprecation errors [`69455fa`](https://github.com/gohugoio/hugo/commit/69455fa42) [@&#8203;bep](https://github.com/bep) ##### Improvements - internal/warpc: Add license headers [`2192cf7`](https://github.com/gohugoio/hugo/commit/2192cf7ec) [@&#8203;bep](https://github.com/bep) - Add katex option ThrowOnError [`e422635`](https://github.com/gohugoio/hugo/commit/e42263529) [@&#8203;bep](https://github.com/bep) - Add some more KaTeX options [`891aa00`](https://github.com/gohugoio/hugo/commit/891aa00fe) [@&#8203;bep](https://github.com/bep) [#&#8203;12745](https://github.com/gohugoio/hugo/issues/12745) [#&#8203;12746](https://github.com/gohugoio/hugo/issues/12746) - tpl/transform: Make Plainify and ToMath return template.HTML [`946e6af`](https://github.com/gohugoio/hugo/commit/946e6af0b) [@&#8203;bep](https://github.com/bep) [#&#8203;8732](https://github.com/gohugoio/hugo/issues/8732) - Add build time math rendering [`33c0938`](https://github.com/gohugoio/hugo/commit/33c0938cd) [@&#8203;bep](https://github.com/bep) [#&#8203;11927](https://github.com/gohugoio/hugo/issues/11927) - github: Turn off the image workflow for pull request [`0c3a1c7`](https://github.com/gohugoio/hugo/commit/0c3a1c728) [@&#8203;bep](https://github.com/bep) - github: Update image actions versions and some adjustments [`ceed812`](https://github.com/gohugoio/hugo/commit/ceed81245) [@&#8203;bep](https://github.com/bep) - github: Update GitHub actions versions [`dbff48e`](https://github.com/gohugoio/hugo/commit/dbff48e6c) [@&#8203;bep](https://github.com/bep) - markup: Add blockquote render hooks [`665ac94`](https://github.com/gohugoio/hugo/commit/665ac949b) [@&#8203;bep](https://github.com/bep) [#&#8203;12590](https://github.com/gohugoio/hugo/issues/12590) - markup/goldmark/codeblocks: Simplify codeblcok hook code [`4c162de`](https://github.com/gohugoio/hugo/commit/4c162deb0) [@&#8203;bep](https://github.com/bep) - Add render hooks for inline and block passthrough snippets [`c6227f1`](https://github.com/gohugoio/hugo/commit/c6227f1d8) [@&#8203;bep](https://github.com/bep) [#&#8203;11927](https://github.com/gohugoio/hugo/issues/11927) - tpl/cast: Improve float [`10891f3`](https://github.com/gohugoio/hugo/commit/10891f305) [@&#8203;bep](https://github.com/bep) [#&#8203;12718](https://github.com/gohugoio/hugo/issues/12718) - Skip TestEchoParam [`c07e94f`](https://github.com/gohugoio/hugo/commit/c07e94fa6) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - deps: Upgrade github.com/bep/imagemeta v0.7.6 => v0.8.0 [`5d84f64`](https://github.com/gohugoio/hugo/commit/5d84f6475) [@&#8203;bep](https://github.com/bep) [#&#8203;12741](https://github.com/gohugoio/hugo/issues/12741) - build(deps): bump golang.org/x/net from 0.27.0 to 0.28.0 [`1781b18`](https://github.com/gohugoio/hugo/commit/1781b1842) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.18.0 to 0.19.0 [`d6d9ddd`](https://github.com/gohugoio/hugo/commit/d6d9dddff) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/imagemeta from 0.7.5 to 0.7.6 ([#&#8203;12720](https://github.com/gohugoio/hugo/issues/12720)) [`8f8d12a`](https://github.com/gohugoio/hugo/commit/8f8d12ab2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] [#&#8203;12718](https://github.com/gohugoio/hugo/issues/12718) ##### Documentation - docs: Regen docshelper [`ef2e30e`](https://github.com/gohugoio/hugo/commit/ef2e30eca) [@&#8203;bep](https://github.com/bep) ##### Build Setup - github: Build and publish Docker image on release [`b08de70`](https://github.com/gohugoio/hugo/commit/b08de70cc) [@&#8203;morremeyer](https://github.com/morremeyer) [#&#8203;10760](https://github.com/gohugoio/hugo/issues/10760) ### [`v0.131.0`](https://github.com/gohugoio/hugo/releases/tag/v0.131.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.130.0...v0.131.0) **Note** that if you use Hugo's image processing, your processed images will get new (shorter!) file names when you build your site with this release. We have upgraded a third party hashing library to fix some rare but potential hash collisions, and since this would change some of the image hashes, we thought we might as well do some other related changes: We now use [xxHash](https://xxhash.com/) to create the image file hashes (very fast!) and we have removed the verbose processing information, making the filenames much shorter. This release is also a full dependency refresh and it comes with one notable and very useful new feature. It is now possible to use `permalinks` tokens in the front matter `url`. See the [documentation](https://gohugo.io/content-management/urls/#permalinks-tokens-in-front-matter) for more info. Thanks to [@&#8203;n1xx1](https://github.com/n1xx1) for the implementation. ##### Note - identity: Use xxHash in hashstructure (note) [`2babd64`](https://github.com/gohugoio/hugo/commit/2babd6404) [@&#8203;bep](https://github.com/bep) ##### Bug fixes - Fix images.AutoOrient regression [`944fcc2`](https://github.com/gohugoio/hugo/commit/944fcc216) [@&#8203;bep](https://github.com/bep) [#&#8203;12712](https://github.com/gohugoio/hugo/issues/12712) ##### Improvements - revamp pagegroup tests with quicktest [`914fa13`](https://github.com/gohugoio/hugo/commit/914fa13ef) [@&#8203;n1xx1](https://github.com/n1xx1) - allow nested params when using Pages.GroupByParam and Pages.GroupByParamDate [`51f09b1`](https://github.com/gohugoio/hugo/commit/51f09b17f) [@&#8203;n1xx1](https://github.com/n1xx1) - Run go mod tidy [`a5db76f`](https://github.com/gohugoio/hugo/commit/a5db76fe6) [@&#8203;bep](https://github.com/bep) - resources/page: Expand parmalinks tokens in `url` [`566fe7b`](https://github.com/gohugoio/hugo/commit/566fe7ba1) [@&#8203;n1xx1](https://github.com/n1xx1) [#&#8203;9714](https://github.com/gohugoio/hugo/issues/9714) - Bump to go 1.21 in go.mod [`9257301`](https://github.com/gohugoio/hugo/commit/92573012e) [@&#8203;bep](https://github.com/bep) - tpl: Sync Go template packages with the Go 1.22.5 source [`071f8b4`](https://github.com/gohugoio/hugo/commit/071f8b446) [@&#8203;bep](https://github.com/bep) - Upgrade to Go 1.22.5 [`ae9d5e7`](https://github.com/gohugoio/hugo/commit/ae9d5e7d8) [@&#8203;bep](https://github.com/bep) - Shorten processed image filenames [`216a69a`](https://github.com/gohugoio/hugo/commit/216a69a1e) [@&#8203;bep](https://github.com/bep) [#&#8203;12688](https://github.com/gohugoio/hugo/issues/12688) [#&#8203;12656](https://github.com/gohugoio/hugo/issues/12656) - Consolidate all hashing to the common/hashing package [`e67886c`](https://github.com/gohugoio/hugo/commit/e67886c03) [@&#8203;bep](https://github.com/bep) - Replace the MD5 hashing of images with xxHash [`d5eda13`](https://github.com/gohugoio/hugo/commit/d5eda13cb) [@&#8203;bep](https://github.com/bep) - resources: Add BenchmarkHashImage [`8b5d796`](https://github.com/gohugoio/hugo/commit/8b5d79698) [@&#8203;bep](https://github.com/bep) - identity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2 [`78db8ae`](https://github.com/gohugoio/hugo/commit/78db8aebc) [@&#8203;bep](https://github.com/bep) [#&#8203;11644](https://github.com/gohugoio/hugo/issues/11644) - identity: Add BenchmarkHashString [`3140e0b`](https://github.com/gohugoio/hugo/commit/3140e0b99) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump github.com/bep/godartsass/v2 from 2.0.0 to 2.1.0 [`be64358`](https://github.com/gohugoio/hugo/commit/be643580d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.152.0 to 0.189.0 [`20e4dd2`](https://github.com/gohugoio/hugo/commit/20e4dd2ee) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1 [`f411499`](https://github.com/gohugoio/hugo/commit/f41149979) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.36.0 to 0.38.0 [`47fee83`](https://github.com/gohugoio/hugo/commit/47fee839f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gorilla/websocket from 1.5.1 to 1.5.3 [`99665ef`](https://github.com/gohugoio/hugo/commit/99665ef22) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.12 to 2.2.13 [`eb2eeee`](https://github.com/gohugoio/hugo/commit/eb2eeee68) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/hairyhenderson/go-codeowners v0.4.0 => v0.5.0 [`bea5a46`](https://github.com/gohugoio/hugo/commit/bea5a46de) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/fatih/color from 1.16.0 to 1.17.0 [`f1a7f3d`](https://github.com/gohugoio/hugo/commit/f1a7f3d01) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.21.4 to 0.23.0 [`08243be`](https://github.com/gohugoio/hugo/commit/08243be1d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.36 to 2.20.37 [`0490a8a`](https://github.com/gohugoio/hugo/commit/0490a8a16) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - Revert "deps: Set toolchain go1.21.0 in go.mod" [`d795cac`](https://github.com/gohugoio/hugo/commit/d795cacd7) [@&#8203;bep](https://github.com/bep) - deps: Set toolchain go1.21.0 in go.mod [`78c9a18`](https://github.com/gohugoio/hugo/commit/78c9a18b0) [@&#8203;bep](https://github.com/bep) - deps: Upgrade golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d => v0.23.0 [`79aa2ab`](https://github.com/gohugoio/hugo/commit/79aa2ab61) [@&#8203;bep](https://github.com/bep) - deps: Replace github.com/mitchellh/hashstructure/v2 with github.com/gohugoio/hashstructure [`c9d7577`](https://github.com/gohugoio/hugo/commit/c9d7577cb) [@&#8203;bep](https://github.com/bep) [#&#8203;11644](https://github.com/gohugoio/hugo/issues/11644) - deps: Upgrade github.com/bep/imagemeta v0.7.4 => v0.7.5 [`9989404`](https://github.com/gohugoio/hugo/commit/9989404d9) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/aws/aws-sdk-go-v2 v1.26.1 => v1.30.3 [`b81ba2a`](https://github.com/gohugoio/hugo/commit/b81ba2a0f) [@&#8203;bep](https://github.com/bep) - deps: Upgrade to github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 [`afdd87d`](https://github.com/gohugoio/hugo/commit/afdd87db5) [@&#8203;bep](https://github.com/bep) ### [`v0.130.0`](https://github.com/gohugoio/hugo/releases/tag/v0.130.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.129.0...v0.130.0) ##### What's Changed - math: Add trigonometric functions and some angle helper functions [`9d2b5f9`](https://github.com/gohugoio/hugo/commit/9d2b5f98d) [@&#8203;raoulb](https://github.com/raoulb) [Documentation](https://gohugo.io/functions/math/) - Switch EXIF library [`72ff937`](https://github.com/gohugoio/hugo/commit/72ff937e1) [@&#8203;bep](https://github.com/bep) [#&#8203;10855](https://github.com/gohugoio/hugo/issues/10855) [#&#8203;8586](https://github.com/gohugoio/hugo/issues/8586) [#&#8203;8996](https://github.com/gohugoio/hugo/issues/8996) [Documentation](https://gohugo.io/methods/resource/exif/) ### [`v0.129.0`](https://github.com/gohugoio/hugo/releases/tag/v0.129.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.128.2...v0.129.0) This release brings a rewrite of the logic around browser refreshes when running `hugo server`. We have seen some situations where asset changes (e.g. image/CSS/JS) has not been refreshed reliably in all browsers, even with the developer console open and the cache disabled. We suspect this comes from a recent browser bug (typically: Works fine in Safari, does not refresh in Chrome). The strategy we've been using when a change triggers multiple changes (e.g. both HTML and CSS) is to do one "browser force refresh", which in [LiveReload](https://github.com/livereload/livereload-js) ends up as a `window.location.reload()`. With this release we: 1. Are more specific about what we refresh, but fall back to "force refresh" for bigger change sets. 2. INFO log exactly what we do in these situations with the prefix `livereload`. Start the server with: ``` hugo server --logLevel info ``` And you should see how Hugo handles browser updates when you change content/templates etc. A related tip; start the server with ``` hugo server --logLevel info -N ``` Hugo will navigate to the content file you're changing and log it in the console. Also new in this release a new [xxHash](https://gohugo.io/functions/hash/xxhash/) hashing function that is [much faster](https://github.com/gohugoio/hugo/commit/644d55475d631f60177eb792e9a010a39160df85) than any of the other hashing functions in Hugo, especially for larger inputs. ##### Note We have upgraded the integration with Git used to load [GitInfo](https://gohugo.io/methods/page/gitinfo/) to be part of Hugo's [Security Policy](https://gohugo.io/about/security/#security-policy). We have added `git` to the default whitelist, but if you have a custom security policy, you may have to update that. ##### Bug fixes - commands: Fix --navigateToChanged server behavior when editing headless content [`cc2d19e`](https://github.com/gohugoio/hugo/commit/cc2d19e19) [@&#8203;bep](https://github.com/bep) [#&#8203;12648](https://github.com/gohugoio/hugo/issues/12648) - commands: Fix hugo mod get -u ./... [`251a23e`](https://github.com/gohugoio/hugo/commit/251a23ef7) [@&#8203;bep](https://github.com/bep) [#&#8203;12625](https://github.com/gohugoio/hugo/issues/12625) ##### Improvements - tpl: Use xxHash instead of MD5 to hash the deferred templates [`4d8bfa7`](https://github.com/gohugoio/hugo/commit/4d8bfa7f1) [@&#8203;bep](https://github.com/bep) - Throw error if resources.PostProcess is used in a deferred template [`f0ed91c`](https://github.com/gohugoio/hugo/commit/f0ed91cab) [@&#8203;bep](https://github.com/bep) [#&#8203;12655](https://github.com/gohugoio/hugo/issues/12655) - commands: Simplify the browser live reload logic [`094f746`](https://github.com/gohugoio/hugo/commit/094f74675) [@&#8203;bep](https://github.com/bep) [#&#8203;12643](https://github.com/gohugoio/hugo/issues/12643) - Use xxHash for the change detector [`fb8909d`](https://github.com/gohugoio/hugo/commit/fb8909d5b) [@&#8203;bep](https://github.com/bep) [#&#8203;12643](https://github.com/gohugoio/hugo/issues/12643) - source: Expose GitInfo Body [`0ee2610`](https://github.com/gohugoio/hugo/commit/0ee2610d7) [@&#8203;PeskyPotato](https://github.com/PeskyPotato) [#&#8203;10905](https://github.com/gohugoio/hugo/issues/10905) - Add hash.XxHash [`644d554`](https://github.com/gohugoio/hugo/commit/644d55475) [@&#8203;bep](https://github.com/bep) [#&#8203;12635](https://github.com/gohugoio/hugo/issues/12635) ##### Dependency Updates - deps: Upgrade github.com/bep/gitmap v1.4.0 => v1.6.0 (note) [`7be0377`](https://github.com/gohugoio/hugo/commit/7be037750) [@&#8203;bep](https://github.com/bep) [#&#8203;8627](https://github.com/gohugoio/hugo/issues/8627) - deps: Go mod tidy [`439f07e`](https://github.com/gohugoio/hugo/commit/439f07eac) [@&#8203;bep](https://github.com/bep) - deps: Upgraded github.com/tdewolff/minify/v2 v2.20.20 => v2.20.36 [`ce5a2ce`](https://github.com/gohugoio/hugo/commit/ce5a2ce00) [@&#8203;bep](https://github.com/bep) - deps: Upgrade to golang.org/x/image v0.18.0 [`0f42d97`](https://github.com/gohugoio/hugo/commit/0f42d975e) [@&#8203;bep](https://github.com/bep) ### [`v0.128.2`](https://github.com/gohugoio/hugo/releases/tag/v0.128.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.128.1...v0.128.2) ##### What's Changed - Fix site.GetPage, never do short lookups for paths with leadig slash [`8cf96f2`](https://github.com/gohugoio/hugo/commit/8cf96f244) [@&#8203;bep](https://github.com/bep) [#&#8203;12638](https://github.com/gohugoio/hugo/issues/12638) ### [`v0.128.1`](https://github.com/gohugoio/hugo/releases/tag/v0.128.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.128.0...v0.128.1) ##### What's Changed - Fix it so publishDate rolls up to section, taxonomy, or term pages [`7b6dafc`](https://github.com/gohugoio/hugo/commit/7b6dafc53) [@&#8203;bep](https://github.com/bep) [#&#8203;12438](https://github.com/gohugoio/hugo/issues/12438) - create/skeletons: Fix languageCode region subtag [`a95fe50`](https://github.com/gohugoio/hugo/commit/a95fe5061) [@&#8203;CyrusYip](https://github.com/CyrusYip) - Update README.md [`932ab4c`](https://github.com/gohugoio/hugo/commit/932ab4c05) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.128.0`](https://github.com/gohugoio/hugo/releases/tag/v0.128.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.127.0...v0.128.0) This release brings [TailwindCSS v4 (alpha)](https://gohugo.io/functions/css/tailwindcss/) support. For more info about the TailwindCSS 4 integration, see [this repo](https://github.com/bep/hugo-testing-tailwindcss-v4). Also notable is the new [templates.Defer](https://gohugo.io/functions/templates/defer/) template func and the dramatically improved performance of `$page.GetTerms` for bigger sites. ##### Bug fixes - tpl/debug: Fix reset of debug timers when running the server [`c880faa`](https://github.com/gohugoio/hugo/commit/c880faa99) [@&#8203;bep](https://github.com/bep) [#&#8203;12621](https://github.com/gohugoio/hugo/issues/12621) - Fix Erroridf/Warnidf mixed case issue [`8731d88`](https://github.com/gohugoio/hugo/commit/8731d8822) [@&#8203;bep](https://github.com/bep) [#&#8203;12617](https://github.com/gohugoio/hugo/issues/12617) - Fix live reload when both CSS and HTML changes [`ad6d91c`](https://github.com/gohugoio/hugo/commit/ad6d91cab) [@&#8203;bep](https://github.com/bep) [#&#8203;12600](https://github.com/gohugoio/hugo/issues/12600) - config: Fix typo [`7ee36b3`](https://github.com/gohugoio/hugo/commit/7ee36b371) [@&#8203;razonyang](https://github.com/razonyang) ##### Improvements - Add css.TailwindCSS [`e1317dd`](https://github.com/gohugoio/hugo/commit/e1317dd32) [@&#8203;bep](https://github.com/bep) [#&#8203;12618](https://github.com/gohugoio/hugo/issues/12618) [#&#8203;12620](https://github.com/gohugoio/hugo/issues/12620) - Clean up the css related template funcs package structure [`eddcd2b`](https://github.com/gohugoio/hugo/commit/eddcd2bac) [@&#8203;bep](https://github.com/bep) [#&#8203;12618](https://github.com/gohugoio/hugo/issues/12618) - modules: Remove newly introduced "mount source" does not exist warning [`16e4662`](https://github.com/gohugoio/hugo/commit/16e4662b7) [@&#8203;bep](https://github.com/bep) - Implement defer [`6cd0784`](https://github.com/gohugoio/hugo/commit/6cd0784e4) [@&#8203;bep](https://github.com/bep) [#&#8203;8086](https://github.com/gohugoio/hugo/issues/8086) [#&#8203;12589](https://github.com/gohugoio/hugo/issues/12589) - common/hexec: Fall back to the binary in PATH if npx fails [`1c85830`](https://github.com/gohugoio/hugo/commit/1c85830bc) [@&#8203;bep](https://github.com/bep) [#&#8203;12486](https://github.com/gohugoio/hugo/issues/12486) - deploy: Add stripIndexHtml target option [`d5542ed`](https://github.com/gohugoio/hugo/commit/d5542ed28) [@&#8203;depp](https://github.com/depp) [#&#8203;12607](https://github.com/gohugoio/hugo/issues/12607) - Speed up GetTerms [`478a910`](https://github.com/gohugoio/hugo/commit/478a9107a) [@&#8203;bep](https://github.com/bep) [#&#8203;12610](https://github.com/gohugoio/hugo/issues/12610) - markup/goldmark: Add the Hugo Goldmark Extras "delete" extension [`8efc75b`](https://github.com/gohugoio/hugo/commit/8efc75b73) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12597](https://github.com/gohugoio/hugo/issues/12597) - resources: Update Dart Sass error message [`57165d4`](https://github.com/gohugoio/hugo/commit/57165d44e) [@&#8203;jmooring](https://github.com/jmooring) - resources/page: Deprecate PageSize in favor of PagerSize [`9c3143c`](https://github.com/gohugoio/hugo/commit/9c3143c45) [@&#8203;bep](https://github.com/bep) [#&#8203;12572](https://github.com/gohugoio/hugo/issues/12572) - Rename DefaultPageSize => PagerSize [`9f22bc4`](https://github.com/gohugoio/hugo/commit/9f22bc441) [@&#8203;bep](https://github.com/bep) - resources/page: Let GroupByParam return nil instead of error [`cba2de6`](https://github.com/gohugoio/hugo/commit/cba2de6ec) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12578](https://github.com/gohugoio/hugo/issues/12578) - Add option to not generate aliases for first page of pagination pages [`9c4e14e`](https://github.com/gohugoio/hugo/commit/9c4e14eb4) [@&#8203;bep](https://github.com/bep) [#&#8203;12572](https://github.com/gohugoio/hugo/issues/12572) - js: Support more recent targets with js.Build / esbuild [`1cdd3d0`](https://github.com/gohugoio/hugo/commit/1cdd3d0a9) [@&#8203;bep](https://github.com/bep) [#&#8203;12575](https://github.com/gohugoio/hugo/issues/12575) ##### Dependency Updates - deps: Upgrade github.com/yuin/goldmark v1.7.2 => v1.7.4 [`79da24a`](https://github.com/gohugoio/hugo/commit/79da24a0e) [@&#8203;jmooring](https://github.com/jmooring) - deps: Upgrade github.com/yuin/goldmark-emoji v1.0.2 => v1.0.3 [`b187c06`](https://github.com/gohugoio/hugo/commit/b187c0658) [@&#8203;jmooring](https://github.com/jmooring) - deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0 [`8cf94ae`](https://github.com/gohugoio/hugo/commit/8cf94aea7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12580](https://github.com/gohugoio/hugo/issues/12580) - deps: Upgrade github.com/evanw/esbuild v0.20.2 => v0.21.4 [`b57306d`](https://github.com/gohugoio/hugo/commit/b57306d61) [@&#8203;bep](https://github.com/bep) [#&#8203;12575](https://github.com/gohugoio/hugo/issues/12575) ##### Build Setup - Delete unused release hook script [`1687a9a`](https://github.com/gohugoio/hugo/commit/1687a9a58) [@&#8203;bep](https://github.com/bep) [#&#8203;12378](https://github.com/gohugoio/hugo/issues/12378) ##### Documentation - Update README.md [`3b72446`](https://github.com/gohugoio/hugo/commit/3b724462c) [@&#8203;bep](https://github.com/bep) - Update README.md [`b46d101`](https://github.com/gohugoio/hugo/commit/b46d101d5) [@&#8203;bep](https://github.com/bep) ### [`v0.127.0`](https://github.com/gohugoio/hugo/releases/tag/v0.127.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.126.3...v0.127.0) This release brings proper [HTTP caching and live reloading](https://gohugo.io/getting-started/configuration/#configure-http-cache) of remote resources fetched with [resources.GetRemote](https://gohugo.io/functions/resources/getremote/), especially useful when used with [content adapters](https://gohugo.io/content-management/content-adapters/). Note that this isn't enabled out of the box, so if you need this, you need to add some configuration. The demo below is configured as: ```toml [httpcache] [httpcache.cache] [httpcache.cache.for] includes = ['https://sheets.googleapis.com/**'] [[httpcache.polls]] low = '1s' high = '30s' [httpcache.polls.for] includes = ['https://sheets.googleapis.com/**'] ``` <https://github.com/gohugoio/hugo/assets/394382/85ecc217-3342-4ed2-ae8a-ed357a658b64> ##### What's Changed - Add a HTTP cache for and polling configuration for remote resources. [`447108f`](https://github.com/gohugoio/hugo/commit/447108fed) [@&#8203;bep](https://github.com/bep) [#&#8203;12502](https://github.com/gohugoio/hugo/issues/12502) [#&#8203;11891](https://github.com/gohugoio/hugo/issues/11891) - Misc remote HTTP/content adapter enhancements [`2b05a50`](https://github.com/gohugoio/hugo/commit/2b05a50f8) [@&#8203;bep](https://github.com/bep) [#&#8203;12502](https://github.com/gohugoio/hugo/issues/12502) [#&#8203;12570](https://github.com/gohugoio/hugo/issues/12570) ### [`v0.126.3`](https://github.com/gohugoio/hugo/releases/tag/v0.126.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.126.2...v0.126.3) - content adapter: Fix site.GetPage using the base part of the path [`917199a`](https://github.com/gohugoio/hugo/commit/917199a94) [@&#8203;bep](https://github.com/bep) [#&#8203;12561](https://github.com/gohugoio/hugo/issues/12561) - resources/page: Deprecate .Sites.First in favor of .Sites.Default [`c8dac67`](https://github.com/gohugoio/hugo/commit/c8dac67de) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12513](https://github.com/gohugoio/hugo/issues/12513) - metrics: Increase maximum length of cumulative duration to 15 [`0068f03`](https://github.com/gohugoio/hugo/commit/0068f0329) [@&#8203;razonyang](https://github.com/razonyang) - content adapter: Handle more separator in content.value [`0221ddb`](https://github.com/gohugoio/hugo/commit/0221ddb39) [@&#8203;bep](https://github.com/bep) [#&#8203;12556](https://github.com/gohugoio/hugo/issues/12556) ### [`v0.126.2`](https://github.com/gohugoio/hugo/releases/tag/v0.126.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.126.1...v0.126.2) ##### Bug fixes - content adapter: Fix server crash on partial edit [`1464091`](https://github.com/gohugoio/hugo/commit/1464091ad) [@&#8203;bep](https://github.com/bep) [#&#8203;12538](https://github.com/gohugoio/hugo/issues/12538) - content adapter: Fix issue with content starting out with a shortcode [`519f41d`](https://github.com/gohugoio/hugo/commit/519f41dbd) [@&#8203;bep](https://github.com/bep) [#&#8203;12544](https://github.com/gohugoio/hugo/issues/12544) - tpl/tplimpl: Resolve render hook destinations with leading ./ [`b893a09`](https://github.com/gohugoio/hugo/commit/b893a09aa) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12514](https://github.com/gohugoio/hugo/issues/12514) ##### Improvements - Delete .github/workflows/test-dart-sass-v1.yml [`2c88e45`](https://github.com/gohugoio/hugo/commit/2c88e454d) [@&#8203;bep](https://github.com/bep) - commands: Add shorthand flags -M (--renderToMemory) and -N (--navigateToChanged) [`eaa42a8`](https://github.com/gohugoio/hugo/commit/eaa42a875) [@&#8203;bep](https://github.com/bep) [#&#8203;12530](https://github.com/gohugoio/hugo/issues/12530) - content adapter: Add support for menus in AddPage [`245928a`](https://github.com/gohugoio/hugo/commit/245928a1f) [@&#8203;bep](https://github.com/bep) [#&#8203;12507](https://github.com/gohugoio/hugo/issues/12507) - hugolib: Allow override of sitemap file name [`7f30617`](https://github.com/gohugoio/hugo/commit/7f3061723) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12525](https://github.com/gohugoio/hugo/issues/12525) - commands: Improve list command [`931e096`](https://github.com/gohugoio/hugo/commit/931e096f2) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12520](https://github.com/gohugoio/hugo/issues/12520) - config: Remove extraneous BuildConfig setting [`548dc21`](https://github.com/gohugoio/hugo/commit/548dc2137) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12519](https://github.com/gohugoio/hugo/issues/12519) - Also warn about duplicate content paths with --printPathWarnings [`6b00661`](https://github.com/gohugoio/hugo/commit/6b006616e) [@&#8203;bep](https://github.com/bep) [#&#8203;12511](https://github.com/gohugoio/hugo/issues/12511) ### [`v0.126.1`](https://github.com/gohugoio/hugo/releases/tag/v0.126.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.126.0...v0.126.1) ##### What's Changed - Fix mixed case Page params handling in content adapters [`39cf906`](https://github.com/gohugoio/hugo/commit/39cf906bc) [@&#8203;bep](https://github.com/bep) [#&#8203;12497](https://github.com/gohugoio/hugo/issues/12497) - Fix paths with dots issue with content adapters [`1aacfce`](https://github.com/gohugoio/hugo/commit/1aacfced3) [@&#8203;bep](https://github.com/bep) [#&#8203;12493](https://github.com/gohugoio/hugo/issues/12493) ### [`v0.126.0`](https://github.com/gohugoio/hugo/releases/tag/v0.126.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.7...v0.126.0) This release brings, drum roll, a long-awaited Hugo feature that has had many names. At one point we named it *pages from data*. You can read all about it in the documentation where it's titled [Content Adapters](https://gohugo.io/content-management/content-adapters/). Also worth mentioning are the new [Extras Goldmark Extensions](https://gohugo.io/getting-started/configuration-markup/#extras-extension), which allows you to enable Markdown syntax for inserted text, mark text, subscript and superscript. A big thanks to [@&#8203;bowman2001](https://github.com/bowman2001) for the implementation. ##### Improvements - tpl/tplimpl: Plainify title and description in twitter\_cards.html [`74ab839`](https://github.com/gohugoio/hugo/commit/74ab839cc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12433](https://github.com/gohugoio/hugo/issues/12433) - tpl/tplimpl: Plainify title and description in schema.html [`92290aa`](https://github.com/gohugoio/hugo/commit/92290aa89) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12432](https://github.com/gohugoio/hugo/issues/12432) - resources/images: Handle NaN EXIF latitude and longitude [`6dbbe6d`](https://github.com/gohugoio/hugo/commit/6dbbe6dd3) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12490](https://github.com/gohugoio/hugo/issues/12490) - Create pages from \_content.gotmpl [`e2d66e3`](https://github.com/gohugoio/hugo/commit/e2d66e321) [@&#8203;bep](https://github.com/bep) [#&#8203;12427](https://github.com/gohugoio/hugo/issues/12427) [#&#8203;12485](https://github.com/gohugoio/hugo/issues/12485) [#&#8203;6310](https://github.com/gohugoio/hugo/issues/6310) [#&#8203;5074](https://github.com/gohugoio/hugo/issues/5074) - create/skeletons: Remove superfluous language code fallback [`55dea41`](https://github.com/gohugoio/hugo/commit/55dea41c1) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12479](https://github.com/gohugoio/hugo/issues/12479) - tpl/tplimpl: Improve locale value in opengraph.html [`87ab7f7`](https://github.com/gohugoio/hugo/commit/87ab7f7ff) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12480](https://github.com/gohugoio/hugo/issues/12480) - tpl/tplimpl: Retain query string and fragment in render-image.html [`6dfeb9f`](https://github.com/gohugoio/hugo/commit/6dfeb9f03) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12468](https://github.com/gohugoio/hugo/issues/12468) - markup/goldmark: Support extras extension [`ca9a77e`](https://github.com/gohugoio/hugo/commit/ca9a77ef9) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - build(deps): bump golang.org/x/net from 0.24.0 to 0.25.0 [`ee26e69`](https://github.com/gohugoio/hugo/commit/ee26e69ce) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.15.0 to 0.16.0 [`6e83d00`](https://github.com/gohugoio/hugo/commit/6e83d00a8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docshelper [`2661402`](https://github.com/gohugoio/hugo/commit/266140251) [@&#8203;bep](https://github.com/bep) ##### Build Setup - livereload: Improve the livereload script build and update to v4.0.2 [`d02f062`](https://github.com/gohugoio/hugo/commit/d02f0622b) [@&#8203;bep](https://github.com/bep) [#&#8203;12451](https://github.com/gohugoio/hugo/issues/12451) [#&#8203;6290](https://github.com/gohugoio/hugo/issues/6290) ### [`v0.125.7`](https://github.com/gohugoio/hugo/releases/tag/v0.125.7) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.6...v0.125.7) **Note** that this release is only relevant if you use Hugo's `openapi3.Unmarshal` template function. ##### What's Changed - deps: Downgrade github.com/getkin/kin-openapi v0.124.0 => v0.123.0 [`3c6260f`](https://github.com/gohugoio/hugo/commit/3c6260f04) [@&#8203;bep](https://github.com/bep) ### [`v0.125.6`](https://github.com/gohugoio/hugo/releases/tag/v0.125.6) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.5...v0.125.6) ##### What's Changed - Fix one more resource change eviction logic issue [`bb59a7e`](https://github.com/gohugoio/hugo/commit/bb59a7ed9) [@&#8203;bep](https://github.com/bep) [#&#8203;12395](https://github.com/gohugoio/hugo/issues/12395) [#&#8203;12456](https://github.com/gohugoio/hugo/issues/12456) - Make the cache eviction logic for stale entities more robust [`503d209`](https://github.com/gohugoio/hugo/commit/503d20954) [@&#8203;bep](https://github.com/bep) [#&#8203;12458](https://github.com/gohugoio/hugo/issues/12458) - build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2 [`68e9532`](https://github.com/gohugoio/hugo/commit/68e95327f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - Run mage generate [`9cd7db6`](https://github.com/gohugoio/hugo/commit/9cd7db61d) [@&#8203;bep](https://github.com/bep) - resources/page: Pull internal Page methods into its own interface [`c892e75`](https://github.com/gohugoio/hugo/commit/c892e75fb) [@&#8203;bep](https://github.com/bep) ### [`v0.125.5`](https://github.com/gohugoio/hugo/releases/tag/v0.125.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.4...v0.125.5) ##### What's Changed - Fix rebuilds on cascade deletes/renames [`7be7f89`](https://github.com/gohugoio/hugo/commit/7be7f89bf) [@&#8203;bep](https://github.com/bep) [#&#8203;12449](https://github.com/gohugoio/hugo/issues/12449) - commands: Print "Webserver is ..." right before "Total ..." [`c8e400b`](https://github.com/gohugoio/hugo/commit/c8e400b62) [@&#8203;bep](https://github.com/bep) [#&#8203;12384](https://github.com/gohugoio/hugo/issues/12384) - Make sure replaced pages gets marked as stale [`9dd6870`](https://github.com/gohugoio/hugo/commit/9dd687027) [@&#8203;bep](https://github.com/bep) [#&#8203;12436](https://github.com/gohugoio/hugo/issues/12436) ### [`v0.125.4`](https://github.com/gohugoio/hugo/releases/tag/v0.125.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.3...v0.125.4) ##### What Changed - Fix rebuilds when running hugo -w [`7203a95`](https://github.com/gohugoio/hugo/commit/7203a95a6) [@&#8203;bep](https://github.com/bep) [#&#8203;12296](https://github.com/gohugoio/hugo/issues/12296) - tpl/tplimpl: Fix double-escaping in opengraph template [`fb51b69`](https://github.com/gohugoio/hugo/commit/fb51b698b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12418](https://github.com/gohugoio/hugo/issues/12418) - commands: Clarify that create or install a theme are two options [`fe84cc2`](https://github.com/gohugoio/hugo/commit/fe84cc218) [@&#8203;Habbie](https://github.com/Habbie) - config: Setups with only one active language can never be multihost [`babcb33`](https://github.com/gohugoio/hugo/commit/babcb339a) [@&#8203;bep](https://github.com/bep) [#&#8203;12288](https://github.com/gohugoio/hugo/issues/12288) - Use Apache License without modification [`6b86797`](https://github.com/gohugoio/hugo/commit/6b867972e) [@&#8203;bep](https://github.com/bep) [#&#8203;12415](https://github.com/gohugoio/hugo/issues/12415) - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20 [`fb08439`](https://github.com/gohugoio/hugo/commit/fb084390c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.125.3`](https://github.com/gohugoio/hugo/releases/tag/v0.125.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.2...v0.125.3) This release fixes a security issue reported by [@&#8203;ejona86](https://github.com/ejona86) (see [#&#8203;12411](https://github.com/gohugoio/hugo/issues/12411)) that could allow [XSS injection](https://owasp.org/www-community/attacks/xss/) from Markdown content files if one of the internal [link or image](https://gohugo.io/getting-started/configuration-markup/#renderhooksimageenabledefault) render hook templates added in Hugo 0.123.0 are enabled. You typically control and trust the content files, but according to Hugo's [security model](https://gohugo.io/about/security/), we state that "template and configuration authors (you) are trusted, but the data you send in is not." - markup/goldmark: Fix data race in the hugocontext wrapper [`509ab08`](https://github.com/gohugoio/hugo/commit/509ab08c1) [@&#8203;bep](https://github.com/bep) - tpl: Escape .Title in built-in image and link render hooks [`15a4b9b`](https://github.com/gohugoio/hugo/commit/15a4b9b33) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Improve embedded templates [`10a8448`](https://github.com/gohugoio/hugo/commit/10a8448ee) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12396](https://github.com/gohugoio/hugo/issues/12396) - SECURITY.md: Update link to security model [`722c486`](https://github.com/gohugoio/hugo/commit/722c486a3) [@&#8203;ejona86](https://github.com/ejona86) - modules: Fix potential infinite loop in module collection [`f40f50e`](https://github.com/gohugoio/hugo/commit/f40f50ead) [@&#8203;bep](https://github.com/bep) [#&#8203;12407](https://github.com/gohugoio/hugo/issues/12407) ### [`v0.125.2`](https://github.com/gohugoio/hugo/releases/tag/v0.125.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.1...v0.125.2) ##### What's Changed - Only add root sections to the section pages menu [`06d2489`](https://github.com/gohugoio/hugo/commit/06d248910) [@&#8203;bep](https://github.com/bep) [#&#8203;12399](https://github.com/gohugoio/hugo/issues/12399) - Fix partial rebuilds for SCSS fetched with GetMatch and similar Fixes [#&#8203;12395](https://github.com/gohugoio/hugo/issues/12395) [`004b694`](https://github.com/gohugoio/hugo/commit/004b69439) [@&#8203;bep](https://github.com/bep) - commands: Add gen chromastyles --lineNumbersTableStyle flag [`da6112f`](https://github.com/gohugoio/hugo/commit/da6112fc6) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12393](https://github.com/gohugoio/hugo/issues/12393) - resources/images: Fix TestColorLuminance on s390x [`faf9fed`](https://github.com/gohugoio/hugo/commit/faf9fedc3) [@&#8203;bep](https://github.com/bep) - commands: Provide examples for chromastyles flags [`11aa893`](https://github.com/gohugoio/hugo/commit/11aa89319) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12387](https://github.com/gohugoio/hugo/issues/12387) ### [`v0.125.1`](https://github.com/gohugoio/hugo/releases/tag/v0.125.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.125.0...v0.125.1) ##### What's Changed - tpl: Use erroridf for remote YouTube errors [`0c188fd`](https://github.com/gohugoio/hugo/commit/0c188fda2) [@&#8203;bep](https://github.com/bep) [#&#8203;12383](https://github.com/gohugoio/hugo/issues/12383) - build: Fix \`GLIBC\_2.29' not found issue [`bbc6888`](https://github.com/gohugoio/hugo/commit/bbc6888d0) [@&#8203;bep](https://github.com/bep) [#&#8203;12381](https://github.com/gohugoio/hugo/issues/12381) ### [`v0.125.0`](https://github.com/gohugoio/hugo/releases/tag/v0.125.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.124.1...v0.125.0) Some of the notable new features in this release: - [strings.Diff](https://gohugo.io/functions/strings/diff/) template func. - [.PageInner](https://gohugo.io/render-hooks/images/#pageinner) in render hooks to get the inner page when using `.RenderShortcode` in a shortcode, typically used to resolve links and page resources relative to an included `Page`. - Add [`Luminance`](https://gohugo.io/methods/resource/colors/) to `$image.Color`, allowing for sorting by relative luminance. [`e197c7b`](https://github.com/gohugoio/hugo/commit/e197c7b29) [@&#8203;bep](https://github.com/bep) [#&#8203;10450](https://github.com/gohugoio/hugo/issues/10450) This release is built with Go 1.22.2 ([#&#8203;12351](https://github.com/gohugoio/hugo/issues/12351)) which comes with a fix for security issue CVE-2023-45288. We don't see how that could be exploited in Hugo, but we do appreciate that people want a clean security report. ##### Bug fixes - Fix server rebuilds when adding a content file on Linux [`fa60a2f`](https://github.com/gohugoio/hugo/commit/fa60a2fbc) [@&#8203;bep](https://github.com/bep) [#&#8203;12362](https://github.com/gohugoio/hugo/issues/12362) - helpers: Fix TrimShortHTML when used with AsciiDoc content [`6049ba9`](https://github.com/gohugoio/hugo/commit/6049ba99f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12369](https://github.com/gohugoio/hugo/issues/12369) - github: Fix CI build [`9323376`](https://github.com/gohugoio/hugo/commit/9323376df) [@&#8203;bep](https://github.com/bep) - all: Fix duplicate words in comments [`bf0b140`](https://github.com/gohugoio/hugo/commit/bf0b14036) [@&#8203;grimreaper](https://github.com/grimreaper) - all: Typo fixes [`17765a7`](https://github.com/gohugoio/hugo/commit/17765a745) [@&#8203;coliff](https://github.com/coliff) - hugolib: Fix regression for blank summaries [`2664052`](https://github.com/gohugoio/hugo/commit/26640525a) [@&#8203;curegit](https://github.com/curegit) - Fix sectionPagesMenu for pages in root level [`488b21d`](https://github.com/gohugoio/hugo/commit/488b21d15) [@&#8203;bep](https://github.com/bep) [#&#8203;12306](https://github.com/gohugoio/hugo/issues/12306) - Fix resource bundling for overlapping page.md vs page.txt [`983b8d5`](https://github.com/gohugoio/hugo/commit/983b8d537) [@&#8203;bep](https://github.com/bep) [#&#8203;12320](https://github.com/gohugoio/hugo/issues/12320) - Fix panic with debug.Dump with Page when running the server [`38e05bd`](https://github.com/gohugoio/hugo/commit/38e05bd3c) [@&#8203;bep](https://github.com/bep) [#&#8203;12309](https://github.com/gohugoio/hugo/issues/12309) - resources/page: Fix GoDoc comment [`27414d4`](https://github.com/gohugoio/hugo/commit/27414d43a) [@&#8203;availhang](https://github.com/availhang) ##### Improvements - Add Luminance to Color [`e197c7b`](https://github.com/gohugoio/hugo/commit/e197c7b29) [@&#8203;bep](https://github.com/bep) [#&#8203;10450](https://github.com/gohugoio/hugo/issues/10450) - Pass .RenderShortcodes' Page to render hooks as .PageInner [`df11327`](https://github.com/gohugoio/hugo/commit/df11327ba) [@&#8203;bep](https://github.com/bep) [#&#8203;12356](https://github.com/gohugoio/hugo/issues/12356) - github: Add a "free space" step on Ubuntu [`8e50ccf`](https://github.com/gohugoio/hugo/commit/8e50ccfae) [@&#8203;bep](https://github.com/bep) - helpers: Add BenchmarkTrimShortHTML [`bfc3122`](https://github.com/gohugoio/hugo/commit/bfc3122f8) [@&#8203;bep](https://github.com/bep) - github: Update actions [`00ae8e8`](https://github.com/gohugoio/hugo/commit/00ae8e8c7) [@&#8203;bep](https://github.com/bep) - github: Format GitHub actions files [`e423e56`](https://github.com/gohugoio/hugo/commit/e423e5627) [@&#8203;bep](https://github.com/bep) - hugolib: Display server address after each rebuild [`09eb822`](https://github.com/gohugoio/hugo/commit/09eb82282) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12359](https://github.com/gohugoio/hugo/issues/12359) - resources/page: Add taxonomies Page method [`a6e8439`](https://github.com/gohugoio/hugo/commit/a6e843917) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12316](https://github.com/gohugoio/hugo/issues/12316) - commands: Adjust completions [`38f68cd`](https://github.com/gohugoio/hugo/commit/38f68cd16) [@&#8203;bep](https://github.com/bep) - completion: Improve existing argument completions, add many more [`a67650b`](https://github.com/gohugoio/hugo/commit/a67650b6f) [@&#8203;scop](https://github.com/scop) - Upgrade to Go 1.22.2 [`2a060b3`](https://github.com/gohugoio/hugo/commit/2a060b37a) [@&#8203;bep](https://github.com/bep) [#&#8203;12351](https://github.com/gohugoio/hugo/issues/12351) - babel: Run go fmt [`92de862`](https://github.com/gohugoio/hugo/commit/92de8625c) [@&#8203;bep](https://github.com/bep) - babel: Close file before removing [`7907935`](https://github.com/gohugoio/hugo/commit/7907935a4) [@&#8203;testwill](https://github.com/testwill) - bump golang.org/x/mod from 0.16.0 to 0.17.0 [`02d5ec1`](https://github.com/gohugoio/hugo/commit/02d5ec14f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - resources/page: Escape hash sign in permalinks [`4500b0e`](https://github.com/gohugoio/hugo/commit/4500b0e42) [@&#8203;sorenisanerd](https://github.com/sorenisanerd) [#&#8203;4926](https://github.com/gohugoio/hugo/issues/4926) [#&#8203;8232](https://github.com/gohugoio/hugo/issues/8232) [#&#8203;12342](https://github.com/gohugoio/hugo/issues/12342) - tpl/strings: Improve type checking [`7bf1abf`](https://github.com/gohugoio/hugo/commit/7bf1abfc5) [@&#8203;jmooring](https://github.com/jmooring) - tpl/tplimpl: Improve youtube shortcode [`8a0ea12`](https://github.com/gohugoio/hugo/commit/8a0ea12d8) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;3694](https://github.com/gohugoio/hugo/issues/3694) [#&#8203;9213](https://github.com/gohugoio/hugo/issues/9213) [#&#8203;10520](https://github.com/gohugoio/hugo/issues/10520) [#&#8203;10575](https://github.com/gohugoio/hugo/issues/10575) [#&#8203;10576](https://github.com/gohugoio/hugo/issues/10576) - errors: Return error from cast.ToStringE() consistently [`6f07e59`](https://github.com/gohugoio/hugo/commit/6f07e5976) [@&#8203;seiyab](https://github.com/seiyab) - tpl/tplimpl: Improve embedded opengraph template [`2da4ec5`](https://github.com/gohugoio/hugo/commit/2da4ec573) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8296](https://github.com/gohugoio/hugo/issues/8296) [#&#8203;8698](https://github.com/gohugoio/hugo/issues/8698) [#&#8203;8991](https://github.com/gohugoio/hugo/issues/8991) [#&#8203;9818](https://github.com/gohugoio/hugo/issues/9818) [#&#8203;9866](https://github.com/gohugoio/hugo/issues/9866) [#&#8203;10647](https://github.com/gohugoio/hugo/issues/10647) - tpl/strings: Create strings.Diff template function [`6624979`](https://github.com/gohugoio/hugo/commit/6624979e1) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12330](https://github.com/gohugoio/hugo/issues/12330) - tpl/tplimpl: Optionally exclude content from sitemap [`6738a3e`](https://github.com/gohugoio/hugo/commit/6738a3e79) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;653](https://github.com/gohugoio/hugo/issues/653) [#&#8203;12282](https://github.com/gohugoio/hugo/issues/12282) - tpl/tplimpl: Remove trailing slash from void elements [`2f7df4b`](https://github.com/gohugoio/hugo/commit/2f7df4b92) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11867](https://github.com/gohugoio/hugo/issues/11867) - tpl/tplimpl: Update RSS template [`f0a26cf`](https://github.com/gohugoio/hugo/commit/f0a26cf58) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;3918](https://github.com/gohugoio/hugo/issues/3918) [#&#8203;11692](https://github.com/gohugoio/hugo/issues/11692) - tpl/tplimpl: Update schema template [`74ce5dc`](https://github.com/gohugoio/hugo/commit/74ce5dc84) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;7570](https://github.com/gohugoio/hugo/issues/7570) - resources: Use different cache key when copying resources [`54a8f0c`](https://github.com/gohugoio/hugo/commit/54a8f0ce2) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;10412](https://github.com/gohugoio/hugo/issues/10412) [#&#8203;12310](https://github.com/gohugoio/hugo/issues/12310) - tpl/tplimpl: Update Google Analytics template and config [`ebfca61`](https://github.com/gohugoio/hugo/commit/ebfca61ac) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11802](https://github.com/gohugoio/hugo/issues/11802) [#&#8203;10093](https://github.com/gohugoio/hugo/issues/10093) - hugolib: Conditionally suppress .Site.Author deprecation notice [`e191774`](https://github.com/gohugoio/hugo/commit/e1917740a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12297](https://github.com/gohugoio/hugo/issues/12297) ##### Dependency Updates - build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1 [`fe63de3`](https://github.com/gohugoio/hugo/commit/fe63de3a8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0 [`a18e2bc`](https://github.com/gohugoio/hugo/commit/a18e2bcb9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0 [`97df6be`](https://github.com/gohugoio/hugo/commit/97df6be59) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0 [`e9b8bec`](https://github.com/gohugoio/hugo/commit/e9b8bec43) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0 [`888cc1e`](https://github.com/gohugoio/hugo/commit/888cc1e61) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0 [`060cce0`](https://github.com/gohugoio/hugo/commit/060cce0a9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1 [`5608ba1`](https://github.com/gohugoio/hugo/commit/5608ba1f7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront [`2fedca6`](https://github.com/gohugoio/hugo/commit/2fedca6c8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 [`07873b7`](https://github.com/gohugoio/hugo/commit/07873b74b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docshelper [`df9f2fb`](https://github.com/gohugoio/hugo/commit/df9f2fb61) [@&#8203;bep](https://github.com/bep) - hugolib: Add an asciidoc rebuild test case [`74e9129`](https://github.com/gohugoio/hugo/commit/74e912956) [@&#8203;bep](https://github.com/bep) [#&#8203;12375](https://github.com/gohugoio/hugo/issues/12375) - markup/asciidocext: Add Level to Heading struct [`c837f36`](https://github.com/gohugoio/hugo/commit/c837f36ab) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12291](https://github.com/gohugoio/hugo/issues/12291) ### [`v0.124.1`](https://github.com/gohugoio/hugo/releases/tag/v0.124.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.124.0...v0.124.1) ##### What's Changed - Fix potential deadlock in Translations [`758a876`](https://github.com/gohugoio/hugo/commit/758a876f9) [@&#8203;bep](https://github.com/bep) [#&#8203;12129](https://github.com/gohugoio/hugo/issues/12129) - Fix rebuild when changing mixed case named templates [`19937a2`](https://github.com/gohugoio/hugo/commit/19937a20a) [@&#8203;bep](https://github.com/bep) [#&#8203;12165](https://github.com/gohugoio/hugo/issues/12165) - testing: Set usesFMA as true for riscv64 too [`c1ea22a`](https://github.com/gohugoio/hugo/commit/c1ea22a23) [@&#8203;anthonyfok](https://github.com/anthonyfok) - Fix regression for outputs defined in front matter for term pages [`0750a9e`](https://github.com/gohugoio/hugo/commit/0750a9ec9) [@&#8203;bep](https://github.com/bep) [#&#8203;12275](https://github.com/gohugoio/hugo/issues/12275) ### [`v0.124.0`](https://github.com/gohugoio/hugo/releases/tag/v0.124.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.8...v0.124.0) The new feature in this release is a new [segments](https://gohugo.io/getting-started/configuration/#configure-segments) configuration section and a new `--renderSegments` flag/config key. This release also updates to Go 1.22.1 that fixes a security issue in the template package that Hugo uses (CVE-2023-45289, see [golang/go#65697](https://github.com/golang/go/issues/65697)). We don't see how this could be exploited in Hugo, but we appreciate that Hugo users want to have a clean security report. ##### Bug fixes - Fix .Parent when there are overlapping regular pages inbetween [`f1d7559`](https://github.com/gohugoio/hugo/commit/f1d755965) [@&#8203;bep](https://github.com/bep) [#&#8203;12263](https://github.com/gohugoio/hugo/issues/12263) - hugolib: Fix sitemap index with monolingual site [`3935faa`](https://github.com/gohugoio/hugo/commit/3935faa41) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12266](https://github.com/gohugoio/hugo/issues/12266) - all: Typo fixes [`78178d0`](https://github.com/gohugoio/hugo/commit/78178d0c2) [@&#8203;coliff](https://github.com/coliff) - Fix translationKey handling for term pages [`68d92ef`](https://github.com/gohugoio/hugo/commit/68d92ef9d) [@&#8203;bep](https://github.com/bep) [#&#8203;12261](https://github.com/gohugoio/hugo/issues/12261) - Fix intersect and similar for term entry page collections [`b40f3c7`](https://github.com/gohugoio/hugo/commit/b40f3c7df) [@&#8203;bep](https://github.com/bep) [#&#8203;12254](https://github.com/gohugoio/hugo/issues/12254) - Fix server rebuilds when adding sub sections especially on Windows [`07b2e53`](https://github.com/gohugoio/hugo/commit/07b2e535b) [@&#8203;bep](https://github.com/bep) [#&#8203;12230](https://github.com/gohugoio/hugo/issues/12230) - Fix panic when changing archetype files when servere is running [`9ca1de0`](https://github.com/gohugoio/hugo/commit/9ca1de09d) [@&#8203;bep](https://github.com/bep) [#&#8203;12195](https://github.com/gohugoio/hugo/issues/12195) - Fix front matter date location when value gets inherited from other dates [`9668759`](https://github.com/gohugoio/hugo/commit/9668759ad) [@&#8203;bep](https://github.com/bep) [#&#8203;12236](https://github.com/gohugoio/hugo/issues/12236) - Fix Name for nested resourced fetched in resources.ByName and similar [`9e9b1f1`](https://github.com/gohugoio/hugo/commit/9e9b1f110) [@&#8203;bep](https://github.com/bep) [#&#8203;12214](https://github.com/gohugoio/hugo/issues/12214) ##### Improvements - Add segments config + --renderSegments flag [`1f1c62e`](https://github.com/gohugoio/hugo/commit/1f1c62e6c) [@&#8203;bep](https://github.com/bep) [#&#8203;10106](https://github.com/gohugoio/hugo/issues/10106) - hugolib: Remove Site.HomeAbsURL [`558f74f`](https://github.com/gohugoio/hugo/commit/558f74f00) [@&#8203;bep](https://github.com/bep) - hugolib: Deprecate site methods Author, Authors, and Social [`d4d49e0`](https://github.com/gohugoio/hugo/commit/d4d49e0f0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12228](https://github.com/gohugoio/hugo/issues/12228) - Upgrade to Go 1.22.1 [`57206e7`](https://github.com/gohugoio/hugo/commit/57206e727) [@&#8203;bep](https://github.com/bep) [#&#8203;12250](https://github.com/gohugoio/hugo/issues/12250) - tpl/tplimpl: Modify figure shortcode to look for page resource [`48a0fea`](https://github.com/gohugoio/hugo/commit/48a0fea87) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12244](https://github.com/gohugoio/hugo/issues/12244) [#&#8203;12245](https://github.com/gohugoio/hugo/issues/12245) - common/hugo: Rename IsMultiHost and IsMultiLingual [`dc6a292`](https://github.com/gohugoio/hugo/commit/dc6a29213) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12232](https://github.com/gohugoio/hugo/issues/12232) - hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingual [`4f92f94`](https://github.com/gohugoio/hugo/commit/4f92f949e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12224](https://github.com/gohugoio/hugo/issues/12224) - tpl/tplimpl: Remove deprecated method from sitemapindex.xml [`f038a51`](https://github.com/gohugoio/hugo/commit/f038a51b3) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.1.0 => v0.2.0 [`ba03114`](https://github.com/gohugoio/hugo/commit/ba03114aa) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/evanw/esbuild from 0.20.1 to 0.20.2 [`b1f8676`](https://github.com/gohugoio/hugo/commit/b1f867634) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0 [`b4bff61`](https://github.com/gohugoio/hugo/commit/b4bff6190) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.17 to 2.20.19 [`d2cebee`](https://github.com/gohugoio/hugo/commit/d2cebee27) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/alecthomas/chroma/v2 to v2.13.0 [`be914ff`](https://github.com/gohugoio/hugo/commit/be914ff34) [@&#8203;myitcv](https://github.com/myitcv) [#&#8203;11862](https://github.com/gohugoio/hugo/issues/11862) - build(deps): bump golang.org/x/mod from 0.15.0 to 0.16.0 [`e626750`](https://github.com/gohugoio/hugo/commit/e62675002) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen CLI docs [`76ef3f4`](https://github.com/gohugoio/hugo/commit/76ef3f42f) [@&#8203;bep](https://github.com/bep) - docs: Regen docshelper [`0ccb6cd`](https://github.com/gohugoio/hugo/commit/0ccb6cdc0) [@&#8203;bep](https://github.com/bep) ##### Build Setup - snap: Transition to from core20 to core22 [`d24ffdd`](https://github.com/gohugoio/hugo/commit/d24ffdde5) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12219](https://github.com/gohugoio/hugo/issues/12219) ### [`v0.123.8`](https://github.com/gohugoio/hugo/releases/tag/v0.123.8) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.7...v0.123.8) - docs: Fix hyphens and grammar in synopsis of command 'hugo server' [`ada3fce`](https://github.com/gohugoio/hugo/commit/ada3fceea) [@&#8203;deining](https://github.com/deining) - Fix resource name in resources.ByType [`a4b1747`](https://github.com/gohugoio/hugo/commit/a4b17470a) [@&#8203;bep](https://github.com/bep) [#&#8203;12190](https://github.com/gohugoio/hugo/issues/12190) - Fix global resource isn't published when using an uncommon code construct [`4d5e173`](https://github.com/gohugoio/hugo/commit/4d5e173cf) [@&#8203;bep](https://github.com/bep) [#&#8203;12190](https://github.com/gohugoio/hugo/issues/12190) - Fix section page resource not published if resource filename partially matches content file name [`4271b6b`](https://github.com/gohugoio/hugo/commit/4271b6be0) [@&#8203;bep](https://github.com/bep) [#&#8203;12198](https://github.com/gohugoio/hugo/issues/12198) - Fix taxonomy kind template lookup issue [`0567a3e`](https://github.com/gohugoio/hugo/commit/0567a3e6f) [@&#8203;bep](https://github.com/bep) [#&#8203;12193](https://github.com/gohugoio/hugo/issues/12193) - markup/goldmark: TOC: render strikethrough, emojis [`134e7d1`](https://github.com/gohugoio/hugo/commit/134e7d1d3) [@&#8203;lyind](https://github.com/lyind) [#&#8203;7169](https://github.com/gohugoio/hugo/issues/7169) [#&#8203;11783](https://github.com/gohugoio/hugo/issues/11783) [#&#8203;12022](https://github.com/gohugoio/hugo/issues/12022) - Add hugo.IsMultiHost [`1f48b71`](https://github.com/gohugoio/hugo/commit/1f48b717c) [@&#8203;razonyang](https://github.com/razonyang) - resources/images: Retain newlines with text overlays [`05e23bd`](https://github.com/gohugoio/hugo/commit/05e23bd55) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12206](https://github.com/gohugoio/hugo/issues/12206) - Don't auto-create empty sections for nested taxonomies [`7afac3f`](https://github.com/gohugoio/hugo/commit/7afac3f1a) [@&#8203;bep](https://github.com/bep) [#&#8203;12188](https://github.com/gohugoio/hugo/issues/12188) - tpl/tplimpl: Honor markdown attributes in embedded image render hook [`632ad74`](https://github.com/gohugoio/hugo/commit/632ad74fc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12203](https://github.com/gohugoio/hugo/issues/12203) ### [`v0.123.7`](https://github.com/gohugoio/hugo/releases/tag/v0.123.7) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.6...v0.123.7) ##### What's Changed - hugofs: Fix vertical mount merge issue [`2b2f2b7`](https://github.com/gohugoio/hugo/commit/2b2f2b75e) [@&#8203;bep](https://github.com/bep) [#&#8203;12175](https://github.com/gohugoio/hugo/issues/12175) - Fix and add integration test for the Bootstrap SCSS module for both Dart Sass and Libsass [`0d6e593`](https://github.com/gohugoio/hugo/commit/0d6e593ff) [@&#8203;bep](https://github.com/bep) [#&#8203;12178](https://github.com/gohugoio/hugo/issues/12178) - Fix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize permalinks [`7023cf0`](https://github.com/gohugoio/hugo/commit/7023cf0f0) [@&#8203;bep](https://github.com/bep) [#&#8203;12182](https://github.com/gohugoio/hugo/issues/12182) - Make sure that sitemaps gets generated even if there is a content bundle with the same path [`9dfa9e7`](https://github.com/gohugoio/hugo/commit/9dfa9e70e) [@&#8203;bep](https://github.com/bep) [#&#8203;12183](https://github.com/gohugoio/hugo/issues/12183) - resources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitive [`3f217fd`](https://github.com/gohugoio/hugo/commit/3f217fd66) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12177](https://github.com/gohugoio/hugo/issues/12177) ### [`v0.123.6`](https://github.com/gohugoio/hugo/releases/tag/v0.123.6) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.5...v0.123.6) ##### What's Changed - Fix panic when cascading headless from site config to section that does not have an \_index.md file [`fce8d82`](https://github.com/gohugoio/hugo/commit/fce8d82b7) [@&#8203;bep](https://github.com/bep) [#&#8203;12172](https://github.com/gohugoio/hugo/issues/12172) - Fix assets vs data issue [`4a502f7`](https://github.com/gohugoio/hugo/commit/4a502f7eb) [@&#8203;bep](https://github.com/bep) [#&#8203;12133](https://github.com/gohugoio/hugo/issues/12133) - Fix draft for non-default content when content in default language does not exist [`be1dbba`](https://github.com/gohugoio/hugo/commit/be1dbba0f) [@&#8203;bep](https://github.com/bep) [#&#8203;12132](https://github.com/gohugoio/hugo/issues/12132) ### [`v0.123.5`](https://github.com/gohugoio/hugo/releases/tag/v0.123.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.4...v0.123.5) ##### What's Changed - Fix .Page.Pages with similary named sections [`6a8b25e`](https://github.com/gohugoio/hugo/commit/6a8b25e29) [@&#8203;bep](https://github.com/bep) [#&#8203;12169](https://github.com/gohugoio/hugo/issues/12169) - Fix single mount rename panic [`a322282`](https://github.com/gohugoio/hugo/commit/a322282e7) [@&#8203;bep](https://github.com/bep) [#&#8203;12141](https://github.com/gohugoio/hugo/issues/12141) - Fix multihost processed image not copied to non-default content languages [`6bc0d74`](https://github.com/gohugoio/hugo/commit/6bc0d745a) [@&#8203;bep](https://github.com/bep) [#&#8203;12163](https://github.com/gohugoio/hugo/issues/12163) - build(deps): bump github.com/bep/overlayfs from 0.9.1 to 0.9.2 [`2186903`](https://github.com/gohugoio/hugo/commit/218690328) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.123.4`](https://github.com/gohugoio/hugo/releases/tag/v0.123.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.3...v0.123.4) - Fix cascade-pattern-with-extension for cascade in site config [`1736ef7`](https://github.com/gohugoio/hugo/commit/1736ef745) [@&#8203;bep](https://github.com/bep) [#&#8203;12151](https://github.com/gohugoio/hugo/issues/12151) - Fix term template lookup when its backed by a content file [`f27e578`](https://github.com/gohugoio/hugo/commit/f27e57871) [@&#8203;bep](https://github.com/bep) [#&#8203;12146](https://github.com/gohugoio/hugo/issues/12146) - Fix panic for disableKinds page for content resources [`049dd1d`](https://github.com/gohugoio/hugo/commit/049dd1d7e) [@&#8203;bep](https://github.com/bep) [#&#8203;12144](https://github.com/gohugoio/hugo/issues/12144) - tocss: Fix the import resolving from absolute to relative assets paths [`189b723`](https://github.com/gohugoio/hugo/commit/189b72331) [@&#8203;bep](https://github.com/bep) [#&#8203;12137](https://github.com/gohugoio/hugo/issues/12137) - config/allconfig: Fix typo [`80e6934`](https://github.com/gohugoio/hugo/commit/80e69344d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12134](https://github.com/gohugoio/hugo/issues/12134) - resource: Revert the normalization of Resource.Name [`d310595`](https://github.com/gohugoio/hugo/commit/d310595a2) [@&#8203;bep](https://github.com/bep) [#&#8203;12142](https://github.com/gohugoio/hugo/issues/12142) - build(deps): bump github.com/spf13/fsync from 0.10.0 to 0.10.1 [`d4be164`](https://github.com/gohugoio/hugo/commit/d4be1643a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.123.3`](https://github.com/gohugoio/hugo/releases/tag/v0.123.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.2...v0.123.3) ##### Bug fixes - hugolib: Fix a .Page.GetPage from bundle case [`f521336`](https://github.com/gohugoio/hugo/commit/f521336c8) [@&#8203;bep](https://github.com/bep) [#&#8203;12120](https://github.com/gohugoio/hugo/issues/12120) - cache/dynacache: Reset ticker in case one cache eviction takes some time [`03b88c6`](https://github.com/gohugoio/hugo/commit/03b88c6dd) [@&#8203;bep](https://github.com/bep) [#&#8203;12129](https://github.com/gohugoio/hugo/issues/12129) - Speed up GetPage [`bf14d0c`](https://github.com/gohugoio/hugo/commit/bf14d0cb2) [@&#8203;bep](https://github.com/bep) - resources: Skip the image golden tests when running locally [`c4fe45f`](https://github.com/gohugoio/hugo/commit/c4fe45ff4) [@&#8203;bep](https://github.com/bep) [#&#8203;12119](https://github.com/gohugoio/hugo/issues/12119) - js: Support JSX and JSXImportSourceOptions [`554aa58`](https://github.com/gohugoio/hugo/commit/554aa58db) [@&#8203;baltpeter](https://github.com/baltpeter) [#&#8203;12118](https://github.com/gohugoio/hugo/issues/12118) - hugolib: Add capitalizeListTitles config option [`36bf3cb`](https://github.com/gohugoio/hugo/commit/36bf3cb98) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9793](https://github.com/gohugoio/hugo/issues/9793) [#&#8203;12115](https://github.com/gohugoio/hugo/issues/12115) ### [`v0.123.2`](https://github.com/gohugoio/hugo/releases/tag/v0.123.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.1...v0.123.2) ##### What's Changed - Fix it so not all bundled resources are removed when one translation is drafted [`db3bb62`](https://github.com/gohugoio/hugo/commit/db3bb623d) [@&#8203;bep](https://github.com/bep) [#&#8203;12105](https://github.com/gohugoio/hugo/issues/12105) - commands/mod: Ignore invalid module path [`f5fd7ec`](https://github.com/gohugoio/hugo/commit/f5fd7ec8c) [@&#8203;razonyang](https://github.com/razonyang) - Fix regression on handling of overlapping file mounts [`16406d9`](https://github.com/gohugoio/hugo/commit/16406d9d7) [@&#8203;bep](https://github.com/bep) [#&#8203;12103](https://github.com/gohugoio/hugo/issues/12103) - Sitemap should not use list.xml [`e757849`](https://github.com/gohugoio/hugo/commit/e75784930) [@&#8203;bep](https://github.com/bep) [#&#8203;12101](https://github.com/gohugoio/hugo/issues/12101) - Fix rebuild when adding a bundle with space in name [`b8ab5c9`](https://github.com/gohugoio/hugo/commit/b8ab5c9be) [@&#8203;bep](https://github.com/bep) [#&#8203;12092](https://github.com/gohugoio/hugo/issues/12092) - Fix relative import issue in libsass/dart sass [`cf7023c`](https://github.com/gohugoio/hugo/commit/cf7023cb9) [@&#8203;bep](https://github.com/bep) [#&#8203;12094](https://github.com/gohugoio/hugo/issues/12094) - Fix relref regression with trailing slash [`fd0185a`](https://github.com/gohugoio/hugo/commit/fd0185a84) [@&#8203;bep](https://github.com/bep) [#&#8203;12096](https://github.com/gohugoio/hugo/issues/12096) ### [`v0.123.1`](https://github.com/gohugoio/hugo/releases/tag/v0.123.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.123.0...v0.123.1) - Fix server rebuilding of pages without default content language [`eceeb19`](https://github.com/gohugoio/hugo/commit/eceeb1975) [@&#8203;bep](https://github.com/bep) [#&#8203;12082](https://github.com/gohugoio/hugo/issues/12082) - Fix dart sass import regression [`621194a`](https://github.com/gohugoio/hugo/commit/621194a31) [@&#8203;bep](https://github.com/bep) [#&#8203;12072](https://github.com/gohugoio/hugo/issues/12072) - Fix robots.txt using the built-in template regression [`a118cb4`](https://github.com/gohugoio/hugo/commit/a118cb413) [@&#8203;bep](https://github.com/bep) [#&#8203;12071](https://github.com/gohugoio/hugo/issues/12071) - tpl/tplimpl: Resolve fragments in link render hook [`c9f7ebf`](https://github.com/gohugoio/hugo/commit/c9f7ebf00) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;12084](https://github.com/gohugoio/hugo/issues/12084) - Fall back to original name in Resources.GetMatch/Match [`48eec2a`](https://github.com/gohugoio/hugo/commit/48eec2a4e) [@&#8203;bep](https://github.com/bep) [#&#8203;12076](https://github.com/gohugoio/hugo/issues/12076) ### [`v0.123.0`](https://github.com/gohugoio/hugo/releases/tag/v0.123.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.122.0...v0.123.0) The work title for the `v0.123.0` release has been "the million pages release", introducing a new memory limit that allows for a streaming build, shifting large objects out of memory when not in use. This release is also a rewrite of the Hugo core, fixing lots of long-lived bugs and adding some other exciting improvements (see below). There are some [breaking changes](https://github.com/gohugoio/hugo/issues/11455) that have been announced for a long time. Most sites will not be affected by this, but we recommend that you test your site with the new Hugo version before you set it up to build to production. Many people have contributed to this release, but a special shoutout goes to [@&#8203;bep](https://github.com/bep) and [@&#8203;jmooring](https://github.com/jmooring), but also to [@&#8203;TiGR](https://github.com/TiGR) and [@&#8203;McShelby](https://github.com/McShelby) for their help testing and reporting bugs. A list of notable new features: - You can now set a upper memory limit (default 25% of system memory) via the OS environment variable `HUGO_MEMORYLIMIT` (in gigabytes) allowing for much larger data/page sets and/or running on lower specced PCs. This is backed by a partitioned LRU cache used throughout Hugo. A cache that gets dynamically resized in low memory situations, allowing [Go's Garbage Collector](https://tip.golang.org/doc/gc-guide) to free the memory. Note that for regular sized Hugo sites, the performance should be about the same as before. - New dependency tracker for partial server rebuilds. This quickly calculates the delta given a changed resource (e.g. a content file, template, JS file etc.) and supports transitive relations. - A new document store. Previously, a little simplified, we split the document store (where we store pages and resources) in a tree per language. This worked pretty well, but the structure made some operations harder than they needed to be. We have now restructured it into one Radix tree for all languages. Internally the language is considered to be a dimension of that tree, and the tree can be viewed in all dimensions concurrently. This makes some operations re. language simpler (e.g. finding translations is just a slice range), but the idea is that it should also be relatively inexpensive to add more dimensions if needed (e.g. [role](https://github.com/gohugoio/hugo/issues/5139)). With this we also introduce a new [logical page Path](https://gohugo.io/methods/page/path/) which we will used going forward to support other content data sources. - Add warnidf template function, see [docs](https://gohugo.io/functions/fmt/warnidf/) - Add the `[params]` concept to front matter, see [docs](https://gohugo.io/content-management/front-matter/#params) - Add images.Dither filter, see [docs](https://gohugo.io/functions/images/dither/) ##### Bug fixes - Fix handling of build options for term pages [`5ada27b`](https://github.com/gohugoio/hugo/commit/5ada27bf6) [@&#8203;bep](https://github.com/bep) [#&#8203;12058](https://github.com/gohugoio/hugo/issues/12058) - Fix sample logic when adding content files in server [`afe5b6d`](https://github.com/gohugoio/hugo/commit/afe5b6d7d) [@&#8203;bep](https://github.com/bep) [#&#8203;12054](https://github.com/gohugoio/hugo/issues/12054) - all: Fix typos and some URLs [`168d375`](https://github.com/gohugoio/hugo/commit/168d37578) [@&#8203;coliff](https://github.com/coliff) - Fix handling of draft term pages [`fc6aabe`](https://github.com/gohugoio/hugo/commit/fc6aabe93) [@&#8203;bep](https://github.com/bep) [#&#8203;12055](https://github.com/gohugoio/hugo/issues/12055) - commands: Fix --clock with the list command [`4835f9e`](https://github.com/gohugoio/hugo/commit/4835f9e89) [@&#8203;bep](https://github.com/bep) [#&#8203;11888](https://github.com/gohugoio/hugo/issues/11888) - Fix server panic on i18n file change [`9679443`](https://github.com/gohugoio/hugo/commit/9679443c1) [@&#8203;bep](https://github.com/bep) [#&#8203;12048](https://github.com/gohugoio/hugo/issues/12048) - Fix rebuild regression on non-default content language edits [`68f67c9`](https://github.com/gohugoio/hugo/commit/68f67c9ae) [@&#8203;bep](https://github.com/bep) [#&#8203;12043](https://github.com/gohugoio/hugo/issues/12043) - Fix i18n rebuild regression [`f1491c9`](https://github.com/gohugoio/hugo/commit/f1491c900) [@&#8203;bep](https://github.com/bep) [#&#8203;12039](https://github.com/gohugoio/hugo/issues/12039) - Fix rebuild with resources.Concat [`639073e`](https://github.com/gohugoio/hugo/commit/639073e4f) [@&#8203;bep](https://github.com/bep) [#&#8203;12017](https://github.com/gohugoio/hugo/issues/12017) - all: Fix typos [`0672b5c`](https://github.com/gohugoio/hugo/commit/0672b5c76) [@&#8203;coliff](https://github.com/coliff) - resources/page: Fix typo [`e309f82`](https://github.com/gohugoio/hugo/commit/e309f82ef) [@&#8203;rosano](https://github.com/rosano) - Fix taxonomy term with backing file regression [`caba6ba`](https://github.com/gohugoio/hugo/commit/caba6ba6e) [@&#8203;bep](https://github.com/bep) [#&#8203;12020](https://github.com/gohugoio/hugo/issues/12020) - Fix rebuild of changed bundled content files [`a65622a`](https://github.com/gohugoio/hugo/commit/a65622a13) [@&#8203;bep](https://github.com/bep) [#&#8203;12000](https://github.com/gohugoio/hugo/issues/12000) - Fix site.Taxonomies for taxonomies with space in name [`146aedd`](https://github.com/gohugoio/hugo/commit/146aedd7a) [@&#8203;bep](https://github.com/bep) [#&#8203;12001](https://github.com/gohugoio/hugo/issues/12001) - Misc resource fixes/improvements [`2873324`](https://github.com/gohugoio/hugo/commit/287332489) [@&#8203;bep](https://github.com/bep) [#&#8203;11974](https://github.com/gohugoio/hugo/issues/11974) - Fix disabled languages regression [`4174a78`](https://github.com/gohugoio/hugo/commit/4174a7866) [@&#8203;bep](https://github.com/bep) [#&#8203;11959](https://github.com/gohugoio/hugo/issues/11959) - tpl/data: Fix GetCSV deprecation message [`5dd06b4`](https://github.com/gohugoio/hugo/commit/5dd06b413) [@&#8203;jmooring](https://github.com/jmooring) - Fix failing test on Windows [`d8f0e30`](https://github.com/gohugoio/hugo/commit/d8f0e3071) [@&#8203;bep](https://github.com/bep) - deploy: Fix CloudFront invalidation with AWS SDK2 [`d8c2734`](https://github.com/gohugoio/hugo/commit/d8c273417) [@&#8203;bep](https://github.com/bep) - Fix build error [`34d63c8`](https://github.com/gohugoio/hugo/commit/34d63c8d1) [@&#8203;bep](https://github.com/bep) - Fix recent regression .Resources.Get for resources with spaces in filename [`80595bb`](https://github.com/gohugoio/hugo/commit/80595bbe3) [@&#8203;bep](https://github.com/bep) [#&#8203;11944](https://github.com/gohugoio/hugo/issues/11944) - hugofs/glob: Fix dropped test error [`ec22bb3`](https://github.com/gohugoio/hugo/commit/ec22bb31a) [@&#8203;alrs](https://github.com/alrs) ##### Improvements - Handle rebuilds when resources passed to transform.Unmarshal etc. changes [`5dbc29d`](https://github.com/gohugoio/hugo/commit/5dbc29dc6) [@&#8203;bep](https://github.com/bep) [#&#8203;12065](https://github.com/gohugoio/hugo/issues/12065) - Don't use the same value in .Data.Term.Title as in .Title [`5bdda0b`](https://github.com/gohugoio/hugo/commit/5bdda0bdb) [@&#8203;bep](https://github.com/bep) [#&#8203;12041](https://github.com/gohugoio/hugo/issues/12041) - Let standard library handle charset parameter to MIME types [`43ea2cd`](https://github.com/gohugoio/hugo/commit/43ea2cd66) [@&#8203;datosh](https://github.com/datosh) [#&#8203;10734](https://github.com/gohugoio/hugo/issues/10734) - Add images.Dither filter [`21d9057`](https://github.com/gohugoio/hugo/commit/21d9057db) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8598](https://github.com/gohugoio/hugo/issues/8598) - markup/goldmark: Improve TOC tests [`f4575e5`](https://github.com/gohugoio/hugo/commit/f4575e5f2) [@&#8203;jmooring](https://github.com/jmooring) - Move the duplicate page/resource filter [`0851c17`](https://github.com/gohugoio/hugo/commit/0851c175a) [@&#8203;bep](https://github.com/bep) [#&#8203;12013](https://github.com/gohugoio/hugo/issues/12013) - Upgrade to Go 1.22 [`9571246`](https://github.com/gohugoio/hugo/commit/9571246bc) [@&#8203;bep](https://github.com/bep) [#&#8203;12010](https://github.com/gohugoio/hugo/issues/12010) - Avoid impporting deploy from config when nodeploy tag is set [`0257eb5`](https://github.com/gohugoio/hugo/commit/0257eb50a) [@&#8203;bep](https://github.com/bep) [#&#8203;12009](https://github.com/gohugoio/hugo/issues/12009) - commands: Remove unused memstats flag [`bd0200d`](https://github.com/gohugoio/hugo/commit/bd0200da6) [@&#8203;bep](https://github.com/bep) - source: Remove unused Filesystem struct [`a80c302`](https://github.com/gohugoio/hugo/commit/a80c3021b) [@&#8203;bep](https://github.com/bep) - Filter dot files etc. in i18n [`9df7b29`](https://github.com/gohugoio/hugo/commit/9df7b295b) [@&#8203;bep](https://github.com/bep) [#&#8203;11993](https://github.com/gohugoio/hugo/issues/11993) - commands: Revert the recent changes that allowed profiling on server rebuilds [`c37bf19`](https://github.com/gohugoio/hugo/commit/c37bf19c8) [@&#8203;bep](https://github.com/bep) - Handle resource changes when the resources is already evicted from cache [`609d798`](https://github.com/gohugoio/hugo/commit/609d798e3) [@&#8203;bep](https://github.com/bep) [#&#8203;11988](https://github.com/gohugoio/hugo/issues/11988) [#&#8203;11973](https://github.com/gohugoio/hugo/issues/11973) [#&#8203;11988](https://github.com/gohugoio/hugo/issues/11988) - all: Rename Unmormalized => Unnormalized [`53f2043`](https://github.com/gohugoio/hugo/commit/53f204310) [@&#8203;bep](https://github.com/bep) - hugolib: Formally deprecate .Page.NextPage .Page.PrevPage [`7f82461`](https://github.com/gohugoio/hugo/commit/7f8246140) [@&#8203;jmooring](https://github.com/jmooring) - hugio: Rename strigReadSeeker => stringReadSeeker [`b72f909`](https://github.com/gohugoio/hugo/commit/b72f90972) [@&#8203;bep](https://github.com/bep) - resources/page: Formally deprecate .Site.LastChange [`3a665dd`](https://github.com/gohugoio/hugo/commit/3a665ddbf) [@&#8203;jmooring](https://github.com/jmooring) - Preserve file/dir name case when loading data [`46575ba`](https://github.com/gohugoio/hugo/commit/46575baa0) [@&#8203;bep](https://github.com/bep) [#&#8203;11979](https://github.com/gohugoio/hugo/issues/11979) - Detect now invalid path patterns in cascade [`058f230`](https://github.com/gohugoio/hugo/commit/058f230a1) [@&#8203;bep](https://github.com/bep) [#&#8203;11977](https://github.com/gohugoio/hugo/issues/11977) - Handle build vs \_build in front matter [`a66480f`](https://github.com/gohugoio/hugo/commit/a66480f70) [@&#8203;bep](https://github.com/bep) [#&#8203;11970](https://github.com/gohugoio/hugo/issues/11970) - resources: Optimize reading resource Content when it's already a string [`e33a632`](https://github.com/gohugoio/hugo/commit/e33a63255) [@&#8203;bep](https://github.com/bep) - tpl/tplimpl: Update embedded instagram, twitter, and vimeo shortcodes [`d0788b9`](https://github.com/gohugoio/hugo/commit/d0788b96a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11971](https://github.com/gohugoio/hugo/issues/11971) - Add some more context to error [`034fbef`](https://github.com/gohugoio/hugo/commit/034fbef50) [@&#8203;bep](https://github.com/bep) [#&#8203;11970](https://github.com/gohugoio/hugo/issues/11970) - Improve nilpointer error message [`8d42a79`](https://github.com/gohugoio/hugo/commit/8d42a7942) [@&#8203;bep](https://github.com/bep) - hugolib: Adjust a test case [`f5ec75d`](https://github.com/gohugoio/hugo/commit/f5ec75db3) [@&#8203;bep](https://github.com/bep) - hugolib: Revert deprecation of .Page.Lang [`6cb3bda`](https://github.com/gohugoio/hugo/commit/6cb3bda3d) [@&#8203;jmooring](https://github.com/jmooring) - all: Deprecate .Page.Lang and .Page.File.Lang [`963cecc`](https://github.com/gohugoio/hugo/commit/963cecc12) [@&#8203;jmooring](https://github.com/jmooring) - config/security: Add SYSTEMDRIVE to OsEnv allowlist [`b6def61`](https://github.com/gohugoio/hugo/commit/b6def6172) [@&#8203;jmooring](https://github.com/jmooring) - hugolib: Add some more details to the "paginator not supported" error [`1891d5e`](https://github.com/gohugoio/hugo/commit/1891d5e6b) [@&#8203;bep](https://github.com/bep) [#&#8203;11949](https://github.com/gohugoio/hugo/issues/11949) - Run go mod tidy [`156f08d`](https://github.com/gohugoio/hugo/commit/156f08de3) [@&#8203;bep](https://github.com/bep) - Upgrade to deploy to use AWS SDK V2 [`a1c6498`](https://github.com/gohugoio/hugo/commit/a1c64989d) [@&#8203;frankywahl](https://github.com/frankywahl) - Improve error message when attempting to paginate from a single page template [`6c3b6ba`](https://github.com/gohugoio/hugo/commit/6c3b6ba3e) [@&#8203;bep](https://github.com/bep) [#&#8203;11953](https://github.com/gohugoio/hugo/issues/11953) - Filter out duplicate content resource files [`bd66d30`](https://github.com/gohugoio/hugo/commit/bd66d3029) [@&#8203;bep](https://github.com/bep) [#&#8203;11946](https://github.com/gohugoio/hugo/issues/11946) - output: Prevent setting Name directly in new output formats [`309d61b`](https://github.com/gohugoio/hugo/commit/309d61b22) [@&#8203;bep](https://github.com/bep) [#&#8203;11947](https://github.com/gohugoio/hugo/issues/11947) - Create default link and image render hooks [`5b7cb25`](https://github.com/gohugoio/hugo/commit/5b7cb258e) [@&#8203;bep](https://github.com/bep) [#&#8203;11933](https://github.com/gohugoio/hugo/issues/11933) - Emit a warning that can be turned off when overwriting built-in .Params values [`afee781`](https://github.com/gohugoio/hugo/commit/afee781f0) [@&#8203;bep](https://github.com/bep) [#&#8203;11941](https://github.com/gohugoio/hugo/issues/11941) - Add warnidf template function [`4e84f57`](https://github.com/gohugoio/hugo/commit/4e84f57ef) [@&#8203;bep](https://github.com/bep) [#&#8203;9189](https://github.com/gohugoio/hugo/issues/9189) - Add path, kind and lang to content front matter [`f31a6db`](https://github.com/gohugoio/hugo/commit/f31a6db79) [@&#8203;bep](https://github.com/bep) [#&#8203;11544](https://github.com/gohugoio/hugo/issues/11544) - all: Run gofumpt -l -w . [`a795acb`](https://github.com/gohugoio/hugo/commit/a795acbcd) [@&#8203;bep](https://github.com/bep) - testing: Simplify some integration tests [`982d951`](https://github.com/gohugoio/hugo/commit/982d9513e) [@&#8203;bep](https://github.com/bep) - Add the \[params] concept to front matter [`6dedb4e`](https://github.com/gohugoio/hugo/commit/6dedb4efc) [@&#8203;bep](https://github.com/bep) [#&#8203;11055](https://github.com/gohugoio/hugo/issues/11055) - tpl/data: Deprecate data.GetJSON and data.GetCSV [`292626e`](https://github.com/gohugoio/hugo/commit/292626e67) [@&#8203;bep](https://github.com/bep) - modules: Print required Hugo version for incompatible modules [`60d954c`](https://github.com/gohugoio/hugo/commit/60d954c78) [@&#8203;razonyang](https://github.com/razonyang) - hugolib: Remove unused test image [`63e0a92`](https://github.com/gohugoio/hugo/commit/63e0a9289) [@&#8203;bep](https://github.com/bep) - navigation: Improve menu cache [`ce7daa6`](https://github.com/gohugoio/hugo/commit/ce7daa615) [@&#8203;Kandulanaveennaidu](https://github.com/Kandulanaveennaidu) - testing: Rename integration\_test.go to PACKAGE\_integration\_test.go [`2a03294`](https://github.com/gohugoio/hugo/commit/2a0329423) [@&#8203;bep](https://github.com/bep) - Port some integration tests to new test setup [`50dc327`](https://github.com/gohugoio/hugo/commit/50dc327d1) [@&#8203;bep](https://github.com/bep) - all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning [`7285e74`](https://github.com/gohugoio/hugo/commit/7285e7409) [@&#8203;bep](https://github.com/bep) [#&#8203;11455](https://github.com/gohugoio/hugo/issues/11455) [#&#8203;11455](https://github.com/gohugoio/hugo/issues/11455) [#&#8203;11549](https://github.com/gohugoio/hugo/issues/11549) [#&#8203;10169](https://github.com/gohugoio/hugo/issues/10169) [#&#8203;10364](https://github.com/gohugoio/hugo/issues/10364) [#&#8203;10482](https://github.com/gohugoio/hugo/issues/10482) [#&#8203;10630](https://github.com/gohugoio/hugo/issues/10630) [#&#8203;10656](https://github.com/gohugoio/hugo/issues/10656) [#&#8203;10694](https://github.com/gohugoio/hugo/issues/10694) [#&#8203;10918](https://github.com/gohugoio/hugo/issues/10918) [#&#8203;11262](https://github.com/gohugoio/hugo/issues/11262) [#&#8203;11439](https://github.com/gohugoio/hugo/issues/11439) [#&#8203;11453](https://github.com/gohugoio/hugo/issues/11453) [#&#8203;11457](https://github.com/gohugoio/hugo/issues/11457) [#&#8203;11466](https://github.com/gohugoio/hugo/issues/11466) [#&#8203;11540](https://github.com/gohugoio/hugo/issues/11540) [#&#8203;11551](https://github.com/gohugoio/hugo/issues/11551) [#&#8203;11556](https://github.com/gohugoio/hugo/issues/11556) [#&#8203;11654](https://github.com/gohugoio/hugo/issues/11654) [#&#8203;11661](https://github.com/gohugoio/hugo/issues/11661) [#&#8203;11663](https://github.com/gohugoio/hugo/issues/11663) [#&#8203;11664](https://github.com/gohugoio/hugo/issues/11664) [#&#8203;11669](https://github.com/gohugoio/hugo/issues/11669) [#&#8203;11671](https://github.com/gohugoio/hugo/issues/11671) [#&#8203;11807](https://github.com/gohugoio/hugo/issues/11807) [#&#8203;11808](https://github.com/gohugoio/hugo/issues/11808) [#&#8203;11809](https://github.com/gohugoio/hugo/issues/11809) [#&#8203;11815](https://github.com/gohugoio/hugo/issues/11815) [#&#8203;11840](https://github.com/gohugoio/hugo/issues/11840) [#&#8203;11853](https://github.com/gohugoio/hugo/issues/11853) [#&#8203;11860](https://github.com/gohugoio/hugo/issues/11860) [#&#8203;11883](https://github.com/gohugoio/hugo/issues/11883) [#&#8203;11904](https://github.com/gohugoio/hugo/issues/11904) [#&#8203;7388](https://github.com/gohugoio/hugo/issues/7388) [#&#8203;7425](https://github.com/gohugoio/hugo/issues/7425) [#&#8203;7436](https://github.com/gohugoio/hugo/issues/7436) [#&#8203;7544](https://github.com/gohugoio/hugo/issues/7544) [#&#8203;7882](https://github.com/gohugoio/hugo/issues/7882) [#&#8203;7960](https://github.com/gohugoio/hugo/issues/7960) [#&#8203;8255](https://github.com/gohugoio/hugo/issues/8255) [#&#8203;8307](https://github.com/gohugoio/hugo/issues/8307) [#&#8203;8863](https://github.com/gohugoio/hugo/issues/8863) [#&#8203;8927](https://github.com/gohugoio/hugo/issues/8927) [#&#8203;9192](https://github.com/gohugoio/hugo/issues/9192) [#&#8203;9324](https://github.com/gohugoio/hugo/issues/9324) ##### Dependency Updates - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.16 to 2.20.17 [`f54ba6f`](https://github.com/gohugoio/hugo/commit/f54ba6f9e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.20.0 to 0.20.1 [`4019b17`](https://github.com/gohugoio/hugo/commit/4019b177e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.17.0 to 0.18.0 [`4a53fd5`](https://github.com/gohugoio/hugo/commit/4a53fd56b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.20.0 to 0.21.0 [`2d1681d`](https://github.com/gohugoio/hugo/commit/2d1681d91) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/mod from 0.14.0 to 0.15.0 [`301bafa`](https://github.com/gohugoio/hugo/commit/301bafabe) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.6.0 to 1.7.0 [`58d7f83`](https://github.com/gohugoio/hugo/commit/58d7f8339) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.122.0 to 0.123.0 [`54ad51e`](https://github.com/gohugoio/hugo/commit/54ad51e8a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.13 to 2.20.16 [`bd1bcc0`](https://github.com/gohugoio/hugo/commit/bd1bcc0f9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.12 to 0.20.0 [`b332f24`](https://github.com/gohugoio/hugo/commit/b332f243f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update gocloud.dev/aws [`d8e1e82`](https://github.com/gohugoio/hugo/commit/d8e1e8218) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/aws/aws-sdk-go from 1.48.6 to 1.50.7 [`4d98b0e`](https://github.com/gohugoio/hugo/commit/4d98b0ed6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.14.0 to 0.15.0 [`15b9976`](https://github.com/gohugoio/hugo/commit/15b9976b7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docshelper [`60b176c`](https://github.com/gohugoio/hugo/commit/60b176cb5) [@&#8203;bep](https://github.com/bep) - docs: Regen CLI docs [`068ccde`](https://github.com/gohugoio/hugo/commit/068ccde4c) [@&#8203;bep](https://github.com/bep) - docs: Regenerate docshelper [`7cb447a`](https://github.com/gohugoio/hugo/commit/7cb447ab8) [@&#8203;bep](https://github.com/bep) - docs: Make null booleans falsy in the docs helper [`5161544`](https://github.com/gohugoio/hugo/commit/51615440b) [@&#8203;bep](https://github.com/bep) - docs: Regen docs helper [`7caa5b3`](https://github.com/gohugoio/hugo/commit/7caa5b3e5) [@&#8203;bep](https://github.com/bep) - docs: Prepare for new sub tree [`fc7de71`](https://github.com/gohugoio/hugo/commit/fc7de7136) [@&#8203;bep](https://github.com/bep) [#&#8203;11925](https://github.com/gohugoio/hugo/issues/11925) ##### Build Setup - markup/goldmark: Update TOC test [`6f59d96`](https://github.com/gohugoio/hugo/commit/6f59d96bb) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.122.0`](https://github.com/gohugoio/hugo/releases/tag/v0.122.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.121.2...v0.122.0) The big new thing in Hugo 0.122.0 is [ LaTeX or TeX typsetting](https://gohugo.io/content-management/mathematics/) directly from Markdown using standard syntax. Thanks to [@&#8203;j2kun](https://github.com/j2kun) and [@&#8203;jmooring](https://github.com/jmooring) for making this happen. ##### Bug fixes - tpl/tplimpl: Fix incorrect lastBuildDate [`87bf2b9`](https://github.com/gohugoio/hugo/commit/87bf2b968) [@&#8203;tastapod](https://github.com/tastapod) [#&#8203;11600](https://github.com/gohugoio/hugo/issues/11600) - tpl: fix incorrect lastBuildDate [`f281ef8`](https://github.com/gohugoio/hugo/commit/f281ef8a4) [@&#8203;tastapod](https://github.com/tastapod) [#&#8203;11600](https://github.com/gohugoio/hugo/issues/11600) ##### Improvements - markup/goldmark: Support passthrough extension [`d0d2c67`](https://github.com/gohugoio/hugo/commit/d0d2c6795) [@&#8203;j2kun](https://github.com/j2kun) [#&#8203;10894](https://github.com/gohugoio/hugo/issues/10894) - parser/metadecoders: Accumulate org keywords into arrays [`46f6187`](https://github.com/gohugoio/hugo/commit/46f618756) [@&#8203;augustfengd](https://github.com/augustfengd) [#&#8203;11743](https://github.com/gohugoio/hugo/issues/11743) - Upgrade to Go 1.21.6 [`a541e3b`](https://github.com/gohugoio/hugo/commit/a541e3b4d) [@&#8203;bep](https://github.com/bep) [#&#8203;11892](https://github.com/gohugoio/hugo/issues/11892) - parser/metadecoders: Add CSV lazyQuotes option to transform.Unmarshal [`912c657`](https://github.com/gohugoio/hugo/commit/912c6576b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11884](https://github.com/gohugoio/hugo/issues/11884) ##### Dependency Updates - build(deps): bump golang.org/x/tools from 0.16.0 to 0.17.0 [`e0021f4`](https://github.com/gohugoio/hugo/commit/e0021f496) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/rogpeppe/go-internal from 1.11.0 to 1.12.0 [`d25902c`](https://github.com/gohugoio/hugo/commit/d25902c0d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.0 to 2.1.1 [`2dd6083`](https://github.com/gohugoio/hugo/commit/2dd608378) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.8 to 0.19.12 [`45f52be`](https://github.com/gohugoio/hugo/commit/45f52be7f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update github.com/tdewolff/minify/v2 v2.20.9 => v2.20.13 [`8915343`](https://github.com/gohugoio/hugo/commit/891534307) [@&#8203;jtatum](https://github.com/jtatum) ##### Documentation - docs: Regen docshelper [`50042ee`](https://github.com/gohugoio/hugo/commit/50042ee1f) [@&#8203;bep](https://github.com/bep) - README: Update minimum Go version to 1.20 [`911bc60`](https://github.com/gohugoio/hugo/commit/911bc60a7) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.121.2`](https://github.com/gohugoio/hugo/releases/tag/v0.121.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.121.1...v0.121.2) The main motivation behind this release is a security fix in the upstream [golang.org/x/crypto](https://github.com/golang/crypto/commit/9d2ee975ef9fe627bf0a6f01c1f69e8ef1d4f05d) library. We don't see how that CVE could be exploited via Hugo, but we do appreciate that many want to have a clean security report. There's also some new features in this release: - [AutoOrient image filter](https://gohugo.io/functions/images/autoorient/) - [math.Rand](https://gohugo.io/functions/math/rand/) ##### What's Changed - build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 [`1ccd314`](https://github.com/gohugoio/hugo/commit/1ccd3147a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - tpl/math: Add math.Rand template function [`e40b9fb`](https://github.com/gohugoio/hugo/commit/e40b9fbbc) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11833](https://github.com/gohugoio/hugo/issues/11833) - resources/images: Create AutoOrient image filter [`648d00c`](https://github.com/gohugoio/hugo/commit/648d00c7d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11717](https://github.com/gohugoio/hugo/issues/11717) - all: Remove unused code [`8adba64`](https://github.com/gohugoio/hugo/commit/8adba648c) [@&#8203;bep](https://github.com/bep) ### [`v0.121.1`](https://github.com/gohugoio/hugo/releases/tag/v0.121.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.121.0...v0.121.1) The only change in this release is that the release binaries are compiled with [Go 1.21.5](https://github.com/golang/go/issues?q=milestone%3AGo1.21.5+label%3ACherryPickApproved) which contains some [security fixes](https://groups.google.com/g/golang-announce/c/iLGK3x6yuNo) that are relevant for Hugo. - Upgrade to Go 1.21.5 [`eb9f1eb`](https://github.com/gohugoio/hugo/commit/eb9f1eb65) [@&#8203;bep](https://github.com/bep) [#&#8203;11786](https://github.com/gohugoio/hugo/issues/11786) ### [`v0.121.0`](https://github.com/gohugoio/hugo/releases/tag/v0.121.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.120.4...v0.121.0) There are some minor new features in this release, but it's mostly a release with bug fixes and dependency updates. One notable dependency update is [libweb v1.3.2](https://github.com/webmproject/libwebp/releases/tag/v1.3.2) which comes with a security fix for the Webp *decoder* (chromium: [#&#8203;1479274](https://github.com/gohugoio/hugo/issues/1479274), CVE-2023-4863). Hugo only uses the encoder (we use Go's native Webp decoder) so we're not affected by this, but we have been contacted by some corporate Hugo users who's eager to have a clean security report. ##### Notes - [kin-openapi v0.122.0](https://github.com/getkin/kin-openapi#v01220) has some minor breaking API changes which, from Hugo's side of it, can be adapted by using the new `.Map` accessors if you get an error. ##### Bug fixes and enhancements - github: Fix CI build on Windows [`6d4b012`](https://github.com/gohugoio/hugo/commit/6d4b01241) [@&#8203;bep](https://github.com/bep) - Fix handling of dropped error in test [`26a8ec2`](https://github.com/gohugoio/hugo/commit/26a8ec207) [@&#8203;alrs](https://github.com/alrs) - resources/resource: Fix GroupByParamDate with raw TOML dates [`dd6cd62`](https://github.com/gohugoio/hugo/commit/dd6cd6268) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11563](https://github.com/gohugoio/hugo/issues/11563) - helpers: Fix TrimShortHTML used by markdownify and RenderString [`0bde693`](https://github.com/gohugoio/hugo/commit/0bde6931a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11698](https://github.com/gohugoio/hugo/issues/11698) - Pull in the latest code from Go's template packages ([#&#8203;11771](https://github.com/gohugoio/hugo/issues/11771)) [`9f978d3`](https://github.com/gohugoio/hugo/commit/9f978d387) [@&#8203;bep](https://github.com/bep) [#&#8203;10707](https://github.com/gohugoio/hugo/issues/10707) [#&#8203;11507](https://github.com/gohugoio/hugo/issues/11507) - tpl: Allow using page resources on the images page parameter for `opengraph`, `schema` and `twitter_cards` templates [`14d85ec`](https://github.com/gohugoio/hugo/commit/14d85ec13) [@&#8203;razonyang](https://github.com/razonyang) - hugolib: Apply titleCaseStyle to automatic section pages [`171836c`](https://github.com/gohugoio/hugo/commit/171836cdf) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11547](https://github.com/gohugoio/hugo/issues/11547) - tpl/urls: Retain query and fragment with absURL and absLangURL [`9ea7103`](https://github.com/gohugoio/hugo/commit/9ea7103db) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11772](https://github.com/gohugoio/hugo/issues/11772) - markup: Add Level to Heading struct [`3fc42da`](https://github.com/gohugoio/hugo/commit/3fc42da3d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;10776](https://github.com/gohugoio/hugo/issues/10776) - tpl/fmt: Print suppression help with erroridf [`d24da17`](https://github.com/gohugoio/hugo/commit/d24da1712) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11506](https://github.com/gohugoio/hugo/issues/11506) - tpl/transform: Display Chroma highlighting errors [`4583b41`](https://github.com/gohugoio/hugo/commit/4583b4130) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9642](https://github.com/gohugoio/hugo/issues/9642) - common/para: Skip flaky test on CI [`e2a624d`](https://github.com/gohugoio/hugo/commit/e2a624dd6) [@&#8203;bep](https://github.com/bep) - watcher: Skip flaky test for now [`30a18e8`](https://github.com/gohugoio/hugo/commit/30a18e882) [@&#8203;bep](https://github.com/bep) - tpl/transform: Add transform.XMLEscape template function [`b4c5df4`](https://github.com/gohugoio/hugo/commit/b4c5df42f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;3268](https://github.com/gohugoio/hugo/issues/3268) - tpl/tplimpl: Remove superfluous type attr on script elements [`8d32ca2`](https://github.com/gohugoio/hugo/commit/8d32ca223) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;6379](https://github.com/gohugoio/hugo/issues/6379) - common/para: Skip flaky tests on Windows [`27620da`](https://github.com/gohugoio/hugo/commit/27620daa2) [@&#8203;bep](https://github.com/bep) - navigation: Unexport menu entry methods [`80d2fdb`](https://github.com/gohugoio/hugo/commit/80d2fdbaa) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11670](https://github.com/gohugoio/hugo/issues/11670) - markup/goldmark: Sync image render hook code with Goldmark [`805cc17`](https://github.com/gohugoio/hugo/commit/805cc1773) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11681](https://github.com/gohugoio/hugo/issues/11681) ##### Dependency Updates - build(deps): bump github.com/alecthomas/chroma/v2 from 2.11.1 to 2.12.0 [`558f325`](https://github.com/gohugoio/hugo/commit/558f3258a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.8 to 2.20.9 [`507f4e3`](https://github.com/gohugoio/hugo/commit/507f4e356) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/cast from 1.5.1 to 1.6.0 [`a7e721e`](https://github.com/gohugoio/hugo/commit/a7e721e02) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.121.0 to 0.122.0 [`2627b91`](https://github.com/gohugoio/hugo/commit/2627b91d3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.13.0 to 0.14.0 [`e536d46`](https://github.com/gohugoio/hugo/commit/e536d461a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8 [`bfc325f`](https://github.com/gohugoio/hugo/commit/bfc325f56) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;5748](https://github.com/gohugoio/hugo/issues/5748) - build(deps): bump github.com/spf13/afero from 1.10.0 to 1.11.0 [`36a60f6`](https://github.com/gohugoio/hugo/commit/36a60f65d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.7 to 0.19.8 [`de2fcc5`](https://github.com/gohugoio/hugo/commit/de2fcc5e1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.151.0 to 0.152.0 [`9ca889b`](https://github.com/gohugoio/hugo/commit/9ca889ba4) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade to libwebp 1.3.2 [`4fb40ee`](https://github.com/gohugoio/hugo/commit/4fb40ee87) [@&#8203;bep](https://github.com/bep) [#&#8203;11746](https://github.com/gohugoio/hugo/issues/11746) - build(deps): bump github.com/aws/aws-sdk-go from 1.48.4 to 1.48.6 [`bc93a36`](https://github.com/gohugoio/hugo/commit/bc93a3613) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.15.0 to 0.16.0 [`3e5bc6f`](https://github.com/gohugoio/hugo/commit/3e5bc6f3b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.120.0 to 0.121.0 [`7c47036`](https://github.com/gohugoio/hugo/commit/7c47036f1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/logg from 0.3.0 to 0.4.0 [`4d07e1f`](https://github.com/gohugoio/hugo/commit/4d07e1fe8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade to github.com/bep/simplecobra v0.4.0 [`1c41232`](https://github.com/gohugoio/hugo/commit/1c41232e6) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/aws/aws-sdk-go from 1.48.2 to 1.48.4 [`f11ca0f`](https://github.com/gohugoio/hugo/commit/f11ca0fad) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0 [`d7a2f3f`](https://github.com/gohugoio/hugo/commit/d7a2f3f98) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.1 [`ef12d16`](https://github.com/gohugoio/hugo/commit/ef12d169c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/fatih/color from 1.15.0 to 1.16.0 [`a62bbfa`](https://github.com/gohugoio/hugo/commit/a62bbfa9e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.17.0 to 0.18.0 [`5887230`](https://github.com/gohugoio/hugo/commit/5887230b7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.5 to 0.19.7 [`a4a66b8`](https://github.com/gohugoio/hugo/commit/a4a66b821) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.10.0 to 2.11.1 [`813390b`](https://github.com/gohugoio/hugo/commit/813390b5a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.5 to 2.20.7 [`d528bbd`](https://github.com/gohugoio/hugo/commit/d528bbd6d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.138.0 to 0.151.0 [`af7f6c8`](https://github.com/gohugoio/hugo/commit/af7f6c8b3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go from 1.45.14 to 1.48.2 ([#&#8203;11724](https://github.com/gohugoio/hugo/issues/11724)) [`e70849e`](https://github.com/gohugoio/hugo/commit/e70849ea7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] [#&#8203;11723](https://github.com/gohugoio/hugo/issues/11723) ##### Documentation - docs: Regen docshelper [`255e0a9`](https://github.com/gohugoio/hugo/commit/255e0a971) [@&#8203;bep](https://github.com/bep) - docs: Adjust last merge from docs repository [`6580cd3`](https://github.com/gohugoio/hugo/commit/6580cd30a) [@&#8203;jmooring](https://github.com/jmooring) - docs: Regen docs helper [`7617de8`](https://github.com/gohugoio/hugo/commit/7617de86c) [@&#8203;bep](https://github.com/bep) ### [`v0.120.4`](https://github.com/gohugoio/hugo/releases/tag/v0.120.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.120.3...v0.120.4) The only change in this release is that the release binaries are compiled with Go 1.21.4 which comes with a security fix for Windows that may be relevant for Hugo. See: - <https://github.com/golang/go/issues?q=milestone%3AGo1.21.4+label%3ACherryPickApproved> - Especially [golang/go#63715](https://github.com/golang/go/issues/63715) ##### What's Changed - Upgrade to go 1.21.4 [`9315a2d`](https://github.com/gohugoio/hugo/commit/9315a2d2c) [@&#8203;bep](https://github.com/bep) [#&#8203;11685](https://github.com/gohugoio/hugo/issues/11685) ### [`v0.120.3`](https://github.com/gohugoio/hugo/releases/tag/v0.120.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.120.2...v0.120.3) ##### What's Changed - tpl/tplimpl: Fix deprecation logic in embedded templates [`cb98e90`](https://github.com/gohugoio/hugo/commit/cb98e9061) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11658](https://github.com/gohugoio/hugo/issues/11658) - Remove some old and unused deprecation code [`5fa97ee`](https://github.com/gohugoio/hugo/commit/5fa97ee96) [@&#8203;bep](https://github.com/bep) - Add a field prefix to the deprecated log statements [`4d38f47`](https://github.com/gohugoio/hugo/commit/4d38f4725) [@&#8203;bep](https://github.com/bep) - Avoid double printing INFO deprecation messages [`80f793c`](https://github.com/gohugoio/hugo/commit/80f793c38) [@&#8203;bep](https://github.com/bep) [#&#8203;11645](https://github.com/gohugoio/hugo/issues/11645) - build(deps): bump github.com/tdewolff/parse/v2 from 2.7.1 to 2.7.3 [`a9079d7`](https://github.com/gohugoio/hugo/commit/a9079d7a6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.20.1 to 2.20.5 [`4914b7f`](https://github.com/gohugoio/hugo/commit/4914b7f18) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ### [`v0.120.2`](https://github.com/gohugoio/hugo/releases/tag/v0.120.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.120.1...v0.120.2) ##### What's Changed - Fix deprecation printing on info level [`ab21433`](https://github.com/gohugoio/hugo/commit/ab2143368) [@&#8203;bep](https://github.com/bep) [#&#8203;11638](https://github.com/gohugoio/hugo/issues/11638) - tpl/tplimpl: Fix deprecation logic in RSS template [`23fcfb7`](https://github.com/gohugoio/hugo/commit/23fcfb7f7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11639](https://github.com/gohugoio/hugo/issues/11639) ### [`v0.120.1`](https://github.com/gohugoio/hugo/releases/tag/v0.120.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.120.0...v0.120.1) ##### What's Changed - deps: Update github.com/tdewolff/minify/v2 v2.20.0 => v2.20.1 [`2bedcf3`](https://github.com/gohugoio/hugo/commit/2bedcf3d1) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11633](https://github.com/gohugoio/hugo/issues/11633) ### [`v0.120.0`](https://github.com/gohugoio/hugo/releases/tag/v0.120.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.119.0...v0.120.0) This is a full dependency refresh and a couple of new cool features: A new [Padding](https://gohugo.io/functions/images/#padding) image filter, and a new [debug.Timer](https://gohugo.io/functions/debug/timer/) template func. The new `debug.Timer` is useful for finding performance bottle necks in templates: ```handlebars {{ $timer := debug.Timer "slowTemplate" }} // ... {{ $timer.Stop }} ``` If you then run `hugo --logLevel info` you should see timer info logged at the end of the build. You can have as many timers as you want and if you don't stop them, they will be stopped at the end of build. Hugo now also builds release binaries for Solaris now that a long-living issue in the upstream [ƒsnotify](https://github.com/fsnotify/fsnotify/pull/371) library has been fixed, thanks to [@&#8203;nshalman](https://github.com/nshalman). ##### Notes - The `enableEmoji` flag now only works for Markdown content. This is unfortunate, but the old solution has some known issues and it was too hard to make it work properly as a general thing across all formats. See [#&#8203;11598](https://github.com/gohugoio/hugo/issues/11598) - `site.DisqusShortname is deprecated` [`2eca1b3`](https://github.com/gohugoio/hugo/commit/2eca1b3cc) - `site.GoogleAnalytics` is deprecated [`a692278`](https://github.com/gohugoio/hugo/commit/a692278bc) - `site.Author` is deprecated [`d4016dd`](https://github.com/gohugoio/hugo/commit/d4016dd5c) - `site.Social` is deprecated [`4910312`](https://github.com/gohugoio/hugo/commit/4910312ee) Also, we have changed the string type for some of the fields and methods: - [.Fragments.ToHTML](https://github.com/gohugoio/hugo/commit/1b5f78b6b7335b02b6207a637498c4c8817999d1) now returns `template.HTML` - `$resource.Data.Integrity` now returns a `string` and not a `template.HTMLAttr` - `delimit` now returns a `string` and not a `template.HTML` See [#&#8203;10876](https://github.com/gohugoio/hugo/issues/10876) [#&#8203;11502](https://github.com/gohugoio/hugo/issues/11502). - the URL functions now returns a `string`, see [#&#8203;11536](https://github.com/gohugoio/hugo/issues/11536) - The paginator `Pager` now returns a `string`. - `site.BaseURL` now returns a `string`. The above should both solve some issues and make the above types more useful and easer to reason about. But if you use the `delimit` function to process HTML and see some unexpected escaping after this release, e.g.: ```handlebars {{ $s := slice "<i>foo</i>" }} {{ delimit $s "," }} ``` Then you need to mark the type with `safeHTML`: ```handlebars {{ $s := slice "<i>foo</i>" }} {{ delimit $s "," | safeHTML }} ``` ##### Bug fixes - create/skeletons: Fix menu template [`acf01bf`](https://github.com/gohugoio/hugo/commit/acf01bfb7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11519](https://github.com/gohugoio/hugo/issues/11519) - Fix so hugo get -u updates transitively [`de4e466`](https://github.com/gohugoio/hugo/commit/de4e46603) [@&#8203;razonyang](https://github.com/razonyang) - tpl/tplimpl: Fix dropped error [`6251626`](https://github.com/gohugoio/hugo/commit/625162674) [@&#8203;alrs](https://github.com/alrs) - tpl/collections: Fix and deprecate echoParams [`75f56b4`](https://github.com/gohugoio/hugo/commit/75f56b4ce) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11498](https://github.com/gohugoio/hugo/issues/11498) ##### Improvements - Add Solaris build [`7f8ab74`](https://github.com/gohugoio/hugo/commit/7f8ab7468) [@&#8203;bep](https://github.com/bep) [#&#8203;3500](https://github.com/gohugoio/hugo/issues/3500) - Make site.BaseURL and $pager.URL a string [`b6a7568`](https://github.com/gohugoio/hugo/commit/b6a756813) [@&#8203;bep](https://github.com/bep) - commands/new: Remove format flag from new content cmd [`27b22cd`](https://github.com/gohugoio/hugo/commit/27b22cd87) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11462](https://github.com/gohugoio/hugo/issues/11462) - hugolib: Display correct markup identifier in error message [`a2488b1`](https://github.com/gohugoio/hugo/commit/a2488b1c9) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11538](https://github.com/gohugoio/hugo/issues/11538) - livereloadinject: Save some allocations [`8f60c0c`](https://github.com/gohugoio/hugo/commit/8f60c0c1e) [@&#8203;bep](https://github.com/bep) - livereloadinject: Use more robust injection method [`9dc6080`](https://github.com/gohugoio/hugo/commit/9dc608084) [@&#8203;DominoPivot](https://github.com/DominoPivot) - tpl/urls: Return strings from URL functions [`a349aaf`](https://github.com/gohugoio/hugo/commit/a349aafb7) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11511](https://github.com/gohugoio/hugo/issues/11511) - transform/livereloadinject: Add benchmark [`b8fbd4a`](https://github.com/gohugoio/hugo/commit/b8fbd4a57) [@&#8203;bep](https://github.com/bep) - Revert "modules: Throttle the "downloading modules …" log entries" [`28d8446`](https://github.com/gohugoio/hugo/commit/28d844642) [@&#8203;bep](https://github.com/bep) - Revert "modules: Adjust the log throttle logic a little" [`eb5fd31`](https://github.com/gohugoio/hugo/commit/eb5fd3127) [@&#8203;bep](https://github.com/bep) - resources/images: Create padding image filter [`3ed28e4`](https://github.com/gohugoio/hugo/commit/3ed28e4bf) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11599](https://github.com/gohugoio/hugo/issues/11599) - markup/goldmark: Update the CJK extension to allow specifying line break styles [`db14238`](https://github.com/gohugoio/hugo/commit/db14238ba) [@&#8203;henry0312](https://github.com/henry0312) - modules: Adjust the log throttle logic a little [`3f64b5a`](https://github.com/gohugoio/hugo/commit/3f64b5a3d) [@&#8203;bep](https://github.com/bep) - modules: Throttle the "downloading modules …" log entries [`6690409`](https://github.com/gohugoio/hugo/commit/66904097e) [@&#8203;bep](https://github.com/bep) - tpl/collections: Make delimit return a string [`e54139c`](https://github.com/gohugoio/hugo/commit/e54139c85) [@&#8203;bep](https://github.com/bep) [#&#8203;10876](https://github.com/gohugoio/hugo/issues/10876) [#&#8203;11502](https://github.com/gohugoio/hugo/issues/11502) - Revise the deprecation logging [`71fd79a`](https://github.com/gohugoio/hugo/commit/71fd79a3f) [@&#8203;bep](https://github.com/bep) - Remove rest of the now unused emoji code [`c4a530f`](https://github.com/gohugoio/hugo/commit/c4a530f10) [@&#8203;bep](https://github.com/bep) [#&#8203;11598](https://github.com/gohugoio/hugo/issues/11598) - markdown: Pass emoji codes to yuin/goldmark-emoji [`272484f`](https://github.com/gohugoio/hugo/commit/272484f8b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;7332](https://github.com/gohugoio/hugo/issues/7332) [#&#8203;11587](https://github.com/gohugoio/hugo/issues/11587) [#&#8203;11598](https://github.com/gohugoio/hugo/issues/11598) - watcher/filenotify: Remove redundant duplicated comments [`c23a0c4`](https://github.com/gohugoio/hugo/commit/c23a0c4a0) [@&#8203;alexandear](https://github.com/alexandear) - tpl/debug: Add average and median to timer output [`46bdc03`](https://github.com/gohugoio/hugo/commit/46bdc0388) [@&#8203;bep](https://github.com/bep) - tpl/debug: Add debug.Timer [`5160c7e`](https://github.com/gohugoio/hugo/commit/5160c7efa) [@&#8203;bep](https://github.com/bep) [#&#8203;11580](https://github.com/gohugoio/hugo/issues/11580) - Add some convenient integration test helpers [`fd38171`](https://github.com/gohugoio/hugo/commit/fd3817181) [@&#8203;bep](https://github.com/bep) - hugolib: Deprecate .Site.DisqusShortname [`2eca1b3`](https://github.com/gohugoio/hugo/commit/2eca1b3cc) [@&#8203;jmooring](https://github.com/jmooring) - hugolib: Deprecate .Site.GoogleAnalytics [`a692278`](https://github.com/gohugoio/hugo/commit/a692278bc) [@&#8203;jmooring](https://github.com/jmooring) - tpl/tplimpl: Deprecate .Site.Author usage in RSS template [`d4016dd`](https://github.com/gohugoio/hugo/commit/d4016dd5c) [@&#8203;jmooring](https://github.com/jmooring) - tpl/tplimpl: Deprecate .Site.Social usage with internal templates [`4910312`](https://github.com/gohugoio/hugo/commit/4910312ee) [@&#8203;jmooring](https://github.com/jmooring) - markup/tableofcontents: Return template.HTML from .Fragments.ToHTML [`1b5f78b`](https://github.com/gohugoio/hugo/commit/1b5f78b6b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11545](https://github.com/gohugoio/hugo/issues/11545) - commands: Update message displayed when running CLI from GUI [`5993afa`](https://github.com/gohugoio/hugo/commit/5993afa4c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11525](https://github.com/gohugoio/hugo/issues/11525) - common/hugo: Add hugo.IsServer and hugo.IsDevelopment [`d1b4458`](https://github.com/gohugoio/hugo/commit/d1b445853) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11510](https://github.com/gohugoio/hugo/issues/11510) - all: Format files with gofmt [`274852b`](https://github.com/gohugoio/hugo/commit/274852bcf) [@&#8203;alexandear](https://github.com/alexandear) - magefile: Update isGoLatest to check for Go 1.21 [`37a2d5e`](https://github.com/gohugoio/hugo/commit/37a2d5eb4) [@&#8203;abdullah-alaadine](https://github.com/abdullah-alaadine) - resources/integrity: Return string instead of template.HTMLAttr [`4c95389`](https://github.com/gohugoio/hugo/commit/4c95389c2) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11513](https://github.com/gohugoio/hugo/issues/11513) - tpl/lang: Formally deprecate lang.NumFmt [`46da0b7`](https://github.com/gohugoio/hugo/commit/46da0b7aa) [@&#8203;jmooring](https://github.com/jmooring) ##### Dependency Updates - build(deps): bump github.com/fsnotify/fsnotify from 1.6.0 to 1.7.0 [`59bcc09`](https://github.com/gohugoio/hugo/commit/59bcc098c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 [`e26ba75`](https://github.com/gohugoio/hugo/commit/e26ba752d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.9.1 to 2.10.0 [`bcf07fa`](https://github.com/gohugoio/hugo/commit/bcf07fa63) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0 [`e2b2092`](https://github.com/gohugoio/hugo/commit/e2b2092ce) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.12.9 to 2.20.0 [`f4df7b8`](https://github.com/gohugoio/hugo/commit/f4df7b88b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20 [`3d9bd40`](https://github.com/gohugoio/hugo/commit/3d9bd404e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.12.0 to 0.13.0 [`5f5e55a`](https://github.com/gohugoio/hugo/commit/5f5e55aa8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 [`8c61fd2`](https://github.com/gohugoio/hugo/commit/8c61fd254) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.3 to 0.19.5 [`d3145e4`](https://github.com/gohugoio/hugo/commit/d3145e4e5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0 [`743a1da`](https://github.com/gohugoio/hugo/commit/743a1da3e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/bep/logg from 0.2.0 to 0.3.0 [`123901b`](https://github.com/gohugoio/hugo/commit/123901b74) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update github.com/tdewolff/minify/v2 v2.12.7 => v2.12.9 [`d5d0f42`](https://github.com/gohugoio/hugo/commit/d5d0f420d) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11533](https://github.com/gohugoio/hugo/issues/11533) ##### Documentation - docs: Regen docshelper [`29b6e13`](https://github.com/gohugoio/hugo/commit/29b6e133a) [@&#8203;bep](https://github.com/bep) - docs: Regenerate docshelper [`d3d4ab4`](https://github.com/gohugoio/hugo/commit/d3d4ab41a) [@&#8203;bep](https://github.com/bep) - Update README.md [`3af8bde`](https://github.com/gohugoio/hugo/commit/3af8bded2) [@&#8203;bep](https://github.com/bep) ### [`v0.119.0`](https://github.com/gohugoio/hugo/releases/tag/v0.119.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.118.2...v0.119.0) This version is built with Go 1.21.1 which contains some relevant security fixes for the `html/template` package, see [Issue 62196](https://github.com/golang/go/issues/62196) and [Issue 62197](https://github.com/golang/go/issues/62197). This is the main reason Hugo 0.119.0 is released sooner rather than later. But this release also comes with a dependency refresh and some useful image processing improvements: - A new general-purpose [Process](https://gohugo.io/content-management/image-processing/#process) method and filter. - A new [Opacity](https://gohugo.io/functions/images/#opacity) filter. `Process` support all of the existing scaling operations, but it can also be used do simple format conversions (e.g. from JPG to PNG). A before/after example: ```handlebars {{ $watermark := resources.Get "logo.jpg" | images.Filter (images.GaussianBlur 6) (images.Opacity 0.5) }} {{ $watermark = $watermark.Resize (printf "%dx%d png" $watermark.Width $watermark.Height ) ``` There are some issues with the above: 1. The source image does not support transparency, so the transparency pixels will be filled with the configured background colour. 2. The image will be decoded and encoded twice with a potential loss in quality. 3. It's clumsy. With Hugo 0.119.0 the above can be written as: ```handlebars {{ $watermark := resources.Get "logo.jpg" | images.Filter (images.GaussianBlur 6) (images.Opacity 0.5) (images.Process "png") }} ``` ##### Bug fixes - Fix tests for Go 1.21.1 [`79a17d9`](https://github.com/gohugoio/hugo/commit/79a17d9e5) [@&#8203;bep](https://github.com/bep) [#&#8203;11450](https://github.com/gohugoio/hugo/issues/11450) - Fix recently broken benchmark [`18ce854`](https://github.com/gohugoio/hugo/commit/18ce85462) [@&#8203;bep](https://github.com/bep) ##### Improvements - common: Remove unused constants [`6b65b2f`](https://github.com/gohugoio/hugo/commit/6b65b2fae) [@&#8203;alexandear](https://github.com/alexandear) - Add images.Process filter [`6a246d1`](https://github.com/gohugoio/hugo/commit/6a246d115) [@&#8203;bep](https://github.com/bep) [#&#8203;8439](https://github.com/gohugoio/hugo/issues/8439) - Add $image.Process [`ef0e714`](https://github.com/gohugoio/hugo/commit/ef0e7149d) [@&#8203;bep](https://github.com/bep) [#&#8203;11483](https://github.com/gohugoio/hugo/issues/11483) - google\_analytics\_async.html: Add deprecation warning [`c32094a`](https://github.com/gohugoio/hugo/commit/c32094ace) [@&#8203;carlmjohnson](https://github.com/carlmjohnson) - Add images.Opacity filter [`f9b3c0f`](https://github.com/gohugoio/hugo/commit/f9b3c0f48) [@&#8203;bep](https://github.com/bep) [#&#8203;11471](https://github.com/gohugoio/hugo/issues/11471) - Upgrade to Go 1.21.1 [`1e9b87f`](https://github.com/gohugoio/hugo/commit/1e9b87f76) [@&#8203;bep](https://github.com/bep) [#&#8203;11474](https://github.com/gohugoio/hugo/issues/11474) [#&#8203;11414](https://github.com/gohugoio/hugo/issues/11414) - create/skeletons: Improve viewport meta tag [`f916315`](https://github.com/gohugoio/hugo/commit/f9163155d) [@&#8203;jmooring](https://github.com/jmooring) - commands/gen: Remove default highlight style [`75c0f88`](https://github.com/gohugoio/hugo/commit/75c0f8828) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11445](https://github.com/gohugoio/hugo/issues/11445) - Adjust baseline benchmarks [`69f5bad`](https://github.com/gohugoio/hugo/commit/69f5bad40) [@&#8203;bep](https://github.com/bep) - commands: Print language code after web server address info [`525bed9`](https://github.com/gohugoio/hugo/commit/525bed991) [@&#8203;ilmari-lauhakangas](https://github.com/ilmari-lauhakangas) ##### Dependency Updates - build(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0 [`a262fd4`](https://github.com/gohugoio/hugo/commit/a262fd4dd) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.8.0 to 2.9.1 [`f0d3245`](https://github.com/gohugoio/hugo/commit/f0d32455d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.19.2 to 0.19.3 [`e8bc8e6`](https://github.com/gohugoio/hugo/commit/e8bc8e6d0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/aws/aws-sdk-go from 1.44.314 to 1.45.14 [`11fcda9`](https://github.com/gohugoio/hugo/commit/11fcda971) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.118.0 to 0.120.0 [`f31375d`](https://github.com/gohugoio/hugo/commit/f31375d4c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.11.0 to 0.12.0 [`6415b59`](https://github.com/gohugoio/hugo/commit/6415b599b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Even more about images.Process [`a9d19db`](https://github.com/gohugoio/hugo/commit/a9d19dbdd) [@&#8203;bep](https://github.com/bep) - docs: More about images.Process [`12d7131`](https://github.com/gohugoio/hugo/commit/12d713176) [@&#8203;bep](https://github.com/bep) - docs: Regen docshelper [`1768684`](https://github.com/gohugoio/hugo/commit/1768684d8) [@&#8203;bep](https://github.com/bep) - commands: Update CLI docs with the important -u flag in hugo mod get [`275c0ac`](https://github.com/gohugoio/hugo/commit/275c0acbf) [@&#8203;bep](https://github.com/bep) ### [`v0.118.2`](https://github.com/gohugoio/hugo/releases/tag/v0.118.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.118.1...v0.118.2) ##### What's Changed - release: Revert to building with Go 1.20 [`df5d76f`](https://github.com/gohugoio/hugo/commit/df5d76fed) [@&#8203;bep](https://github.com/bep) [#&#8203;11414](https://github.com/gohugoio/hugo/issues/11414) ### [`v0.118.1`](https://github.com/gohugoio/hugo/releases/tag/v0.118.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.118.0...v0.118.1) **Note:** There still seem to be an issue on [Vercel](https://github.com/gohugoio/hugo/issues/11414#issuecomment-1700749527). *** This release only fixes a `GLIBC_xxx not found` issue with the Linux AMD64 binary when running on older Linux versions, which is the situation when building on Netlify/Vercel etc. [`7e9092e`](https://github.com/gohugoio/hugo/commit/7e9092eee) [@&#8203;bep](https://github.com/bep) [#&#8203;11414](https://github.com/gohugoio/hugo/issues/11414) There's no functional changes in this release. See [v0.118.0](https://github.com/gohugoio/hugo/releases/tag/v0.118.0). ### [`v0.118.0`](https://github.com/gohugoio/hugo/releases/tag/v0.118.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.117.0...v0.118.0) **Note:** Hugo [0.118.2](https://github.com/gohugoio/hugo/releases/tag/v0.118.2) fixes an issue with the Linux binaries when building on Netlify/Vercel/etc. *** Hugo `0.118.0` now builds with [Go 1.21](https://go.dev/blog/go1.21). This version also comes with: - Proper [CJK](https://en.wikipedia.org/wiki/CJK_characters) support in Markdown: ```toml [markup.goldmark] [markup.goldmark.extensions] [markup.goldmark.extensions.cjk] # Whether to enable CJK support. enable = false # Whether softline breaks between east asian wide characters should be ignored. eastAsianLineBreaks = false # Whether a '\' escaped half-space(0x20) should not be rendered. escapedSpace = false ``` - A revamped implementation of `hugo new site` and `hugo new theme`. See [details](https://discourse.gohugo.io/t/creating-new-site-and-theme-skeletons-with-v0-118-0-and-later/46018). ##### Bug fixes - Fix RegularPagesRecursive for the home page [`15d3e48`](https://github.com/gohugoio/hugo/commit/15d3e48ce) [@&#8203;bep](https://github.com/bep) [#&#8203;11396](https://github.com/gohugoio/hugo/issues/11396) - Fix .RawContent for empty content pages ([#&#8203;11407](https://github.com/gohugoio/hugo/issues/11407)) [`3a8aad6`](https://github.com/gohugoio/hugo/commit/3a8aad6b1) [@&#8203;bep](https://github.com/bep) [#&#8203;11406](https://github.com/gohugoio/hugo/issues/11406) - common/loggers: Fix typo in option name [`65871d5`](https://github.com/gohugoio/hugo/commit/65871d5cf) [@&#8203;alexandear](https://github.com/alexandear) - Fix it so disable a module does not disable transitive dependency required by others [`dcf425c`](https://github.com/gohugoio/hugo/commit/dcf425c84) [@&#8203;bep](https://github.com/bep) [#&#8203;11376](https://github.com/gohugoio/hugo/issues/11376) ##### Improvements - Delay the creation of cache directories until they're used [`94fbab2`](https://github.com/gohugoio/hugo/commit/94fbab2a8) [@&#8203;bep](https://github.com/bep) [#&#8203;11390](https://github.com/gohugoio/hugo/issues/11390) - deploy: Create AWS session for CloudFront invalidation via Go CDK [`c3f273b`](https://github.com/gohugoio/hugo/commit/c3f273b2d) [@&#8203;mattbnz](https://github.com/mattbnz) - markup/goldmark: Add CJK extension [`d7dcc76`](https://github.com/gohugoio/hugo/commit/d7dcc76d2) [@&#8203;henry0312](https://github.com/henry0312) [#&#8203;10472](https://github.com/gohugoio/hugo/issues/10472) - testscripts: Move hugo new tests to where they belong [`d2ae9e1`](https://github.com/gohugoio/hugo/commit/d2ae9e136) [@&#8203;bep](https://github.com/bep) - hugolib: Handle dropped error [`a7b93e6`](https://github.com/gohugoio/hugo/commit/a7b93e656) [@&#8203;alrs](https://github.com/alrs) - Make sure resources directory isn't created in hugo new theme [`ebaa733`](https://github.com/gohugoio/hugo/commit/ebaa733d4) [@&#8203;bep](https://github.com/bep) [#&#8203;11382](https://github.com/gohugoio/hugo/issues/11382) - Go 1.21 Upgrade [`24b1be4`](https://github.com/gohugoio/hugo/commit/24b1be45c) [@&#8203;bep](https://github.com/bep) [#&#8203;11351](https://github.com/gohugoio/hugo/issues/11351) - testscripts: Make mod vendor test stable [`111f02d`](https://github.com/gohugoio/hugo/commit/111f02db2) [@&#8203;bep](https://github.com/bep) - create/skeletons: Move theme's site config to top level [`9a8c84d`](https://github.com/gohugoio/hugo/commit/9a8c84d60) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11380](https://github.com/gohugoio/hugo/issues/11380) - modules: Make new cache directories read/write [`cdf0b3b`](https://github.com/gohugoio/hugo/commit/cdf0b3b7a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11369](https://github.com/gohugoio/hugo/issues/11369) - deploy: Update InvalidateCloudFront to use Go CDK helper [`d979831`](https://github.com/gohugoio/hugo/commit/d979831db) [@&#8203;alexandear](https://github.com/alexandear) - Avoid escaping HTML chars inside hugo\_stats.json [`bcf7421`](https://github.com/gohugoio/hugo/commit/bcf7421ea) [@&#8203;bep](https://github.com/bep) [#&#8203;11371](https://github.com/gohugoio/hugo/issues/11371) - commands/new: Embed site and theme skeletons [`b653853`](https://github.com/gohugoio/hugo/commit/b6538532f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11358](https://github.com/gohugoio/hugo/issues/11358) - cache: Hide IsResourceDir from the exported config [`a2f6400`](https://github.com/gohugoio/hugo/commit/a2f6400d6) [@&#8203;bep](https://github.com/bep) - commands: Handle floats without decimals in hugo config [`7d74cd0`](https://github.com/gohugoio/hugo/commit/7d74cd0cc) [@&#8203;bep](https://github.com/bep) [#&#8203;11345](https://github.com/gohugoio/hugo/issues/11345) - config: Add a type value for the tags related config entry [`b1b6912`](https://github.com/gohugoio/hugo/commit/b1b691241) [@&#8203;bep](https://github.com/bep) - Try to make test more stable [`641390f`](https://github.com/gohugoio/hugo/commit/641390f8f) [@&#8203;bep](https://github.com/bep) ##### Dependency Updates - build(deps): bump google.golang.org/api from 0.134.0 to 0.138.0 [`9bf76fd`](https://github.com/gohugoio/hugo/commit/9bf76fd7e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0 [`b2a02c3`](https://github.com/gohugoio/hugo/commit/b2a02c3c5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.33.0 to 0.34.0 [`6821d6f`](https://github.com/gohugoio/hugo/commit/6821d6f15) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0 [`93c7ad1`](https://github.com/gohugoio/hugo/commit/93c7ad12e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/yuin/goldmark from 1.5.5 to 1.5.6 [`a19d03b`](https://github.com/gohugoio/hugo/commit/a19d03b0e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.18.17 to 0.19.2 [`db7bc49`](https://github.com/gohugoio/hugo/commit/db7bc4969) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docs helper [`e847a98`](https://github.com/gohugoio/hugo/commit/e847a98db) [@&#8203;bep](https://github.com/bep) - Don't use the OS environment when creating config for docs [`45c9bbc`](https://github.com/gohugoio/hugo/commit/45c9bbc6c) [@&#8203;bep](https://github.com/bep) - dockerfile: Update Docker images [`8a08f91`](https://github.com/gohugoio/hugo/commit/8a08f91d5) [@&#8203;michalbiesek](https://github.com/michalbiesek) - docshelper: Improve template lookup order descriptions [`90944aa`](https://github.com/gohugoio/hugo/commit/90944aa26) [@&#8203;jmooring](https://github.com/jmooring) ##### Build Setup - misc: Change dart-sass labels in workflows and snapcraft [`2e4bf89`](https://github.com/gohugoio/hugo/commit/2e4bf89ec) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.117.0`](https://github.com/gohugoio/hugo/releases/tag/v0.117.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.116.1...v0.117.0) This is a release on the small side, but. especially the new `Page.RenderShortcodes` method is so useful, especially for bigger sites, that we decided to get it out sooner rather than later. This method renders all the shortcodes in the content, preserving the surrounding markup (e.g. Markdown) as is. See the [Hugo Documentation](https://gohugo.io/variables/page/#rendershortcodes) for more information. ##### Improvements - Add Page.RenderShortcodes [`ade7ec8`](https://github.com/gohugoio/hugo/commit/ade7ec818) [@&#8203;bep](https://github.com/bep) [#&#8203;7297](https://github.com/gohugoio/hugo/issues/7297) - testing: Write test caches to /tmp [`16da1ad`](https://github.com/gohugoio/hugo/commit/16da1ade7) [@&#8203;bep](https://github.com/bep) [#&#8203;11327](https://github.com/gohugoio/hugo/issues/11327) - Add retry in resources.GetRemote for temporary HTTP errors [`a3d42a2`](https://github.com/gohugoio/hugo/commit/a3d42a277) [@&#8203;bep](https://github.com/bep) [#&#8203;11312](https://github.com/gohugoio/hugo/issues/11312) ##### Dependency Updates - build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 [`0de81c6`](https://github.com/gohugoio/hugo/commit/0de81c643) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.10.0 to 0.11.0 [`d4a6c16`](https://github.com/gohugoio/hugo/commit/d4a6c16c1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Sync go-i18n with upstream [`2e6191b`](https://github.com/gohugoio/hugo/commit/2e6191b2e) [@&#8203;bep](https://github.com/bep) [#&#8203;11336](https://github.com/gohugoio/hugo/issues/11336) - build(deps): bump gocloud.dev from 0.24.0 to 0.33.0 [`2c20fd5`](https://github.com/gohugoio/hugo/commit/2c20fd557) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.11.0 to 0.13.0 [`243736e`](https://github.com/gohugoio/hugo/commit/243736e75) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/marekm4/color-extractor from 1.2.0 to 1.2.1 [`bf891c2`](https://github.com/gohugoio/hugo/commit/bf891c225) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/frankban/quicktest from 1.14.5 to 1.14.6 [`da0df0a`](https://github.com/gohugoio/hugo/commit/da0df0ada) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.9.0 to 0.10.0 [`0885f8e`](https://github.com/gohugoio/hugo/commit/0885f8ec2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/clbanning/mxj/v2 from 2.5.7 to 2.7.0 [`61be050`](https://github.com/gohugoio/hugo/commit/61be050a9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.9.3 to 0.11.1 [`65af75f`](https://github.com/gohugoio/hugo/commit/65af75fb0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 [`2d75f74`](https://github.com/gohugoio/hugo/commit/2d75f74b8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/hairyhenderson/go-codeowners [`2ac3d61`](https://github.com/gohugoio/hugo/commit/2ac3d6160) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 [`9dce45c`](https://github.com/gohugoio/hugo/commit/9dce45c25) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update GitHub issue template [`8fa8ce3`](https://github.com/gohugoio/hugo/commit/8fa8ce3e4) [@&#8203;jmooring](https://github.com/jmooring) - Add all config to docshelper.json [`851bf35`](https://github.com/gohugoio/hugo/commit/851bf3515) [@&#8203;bep](https://github.com/bep) [#&#8203;11328](https://github.com/gohugoio/hugo/issues/11328) ### [`v0.116.1`](https://github.com/gohugoio/hugo/releases/tag/v0.116.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.116.0...v0.116.1) ##### What's Changed - Fix module config watch regression [`30885a6`](https://github.com/gohugoio/hugo/commit/30885a6c5) [@&#8203;bep](https://github.com/bep) [#&#8203;11313](https://github.com/gohugoio/hugo/issues/11313) - deps: Fix Chroma dependency version [`58da855`](https://github.com/gohugoio/hugo/commit/58da8554c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11311](https://github.com/gohugoio/hugo/issues/11311) ### [`v0.116.0`](https://github.com/gohugoio/hugo/releases/tag/v0.116.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.115.4...v0.116.0) There are two notable changes in this release. For one, we have changed the default location of the `cacheDir` (where Hugo stores all its file caches). Having the cache stored in a `/tmp` folder has had its issues, especially for the module cache and especially on MacOS. The current new default should be better and more stable. See See [Configure CacheDir](https://gohugo.io/getting-started/configuration/#configure-cachedir) for more info. Also in this release: The `where` template func finally supports regular expressions with the new [like](https://gohugo.io/functions/where/#use-where-with-like) operator. ##### Note - Deprecate taxonomyTerm [`bec9b80`](https://github.com/gohugoio/hugo/commit/bec9b80d9) [@&#8203;bep](https://github.com/bep) [#&#8203;11256](https://github.com/gohugoio/hugo/issues/11256) - Warn about unknown kinds in disableKinds [`1c97095`](https://github.com/gohugoio/hugo/commit/1c97095ac) [@&#8203;bep](https://github.com/bep) [#&#8203;11256](https://github.com/gohugoio/hugo/issues/11256) - The default value for `cacheDir` is changed to be stored below the directory as defined by Go's [os.UserCacheDir](https://pkg.go.dev/os#UserCacheDir). See [Configure CacheDir](https://gohugo.io/getting-started/configuration/#configure-cachedir) ##### Bug fixes - resources: Fix spelling in method name [`be8e2de`](https://github.com/gohugoio/hugo/commit/be8e2de59) [@&#8203;bep](https://github.com/bep) - Fix so temporary images do not get published [`fbb8eb3`](https://github.com/gohugoio/hugo/commit/fbb8eb39e) [@&#8203;bep](https://github.com/bep) [#&#8203;10255](https://github.com/gohugoio/hugo/issues/10255) - readme: Fix link [`87d9bff`](https://github.com/gohugoio/hugo/commit/87d9bffe7) [@&#8203;tfsojon](https://github.com/tfsojon) - tpl/collections: Fix description of apply function [`dc2a544`](https://github.com/gohugoio/hugo/commit/dc2a544fa) [@&#8203;jmooring](https://github.com/jmooring) - Fix multiple languages in HUGO\_DISABLELANGUAGES [`7f058b8`](https://github.com/gohugoio/hugo/commit/7f058b8ba) [@&#8203;bep](https://github.com/bep) [#&#8203;11278](https://github.com/gohugoio/hugo/issues/11278) ##### Improvements - config: Do not fail on unknown config keys [`c1df5b1`](https://github.com/gohugoio/hugo/commit/c1df5b1b0) [@&#8203;bep](https://github.com/bep) - commands: Update cacheDir description [`d9fdcbe`](https://github.com/gohugoio/hugo/commit/d9fdcbe93) [@&#8203;jmooring](https://github.com/jmooring) - Update where.md [`295d733`](https://github.com/gohugoio/hugo/commit/295d73388) [@&#8203;bep](https://github.com/bep) - Deprecate taxonomyTerm [`bec9b80`](https://github.com/gohugoio/hugo/commit/bec9b80d9) [@&#8203;bep](https://github.com/bep) [#&#8203;11256](https://github.com/gohugoio/hugo/issues/11256) - Warn about unknown kinds in disableKinds [`1c97095`](https://github.com/gohugoio/hugo/commit/1c97095ac) [@&#8203;bep](https://github.com/bep) [#&#8203;11256](https://github.com/gohugoio/hugo/issues/11256) - Move all Kind constants to its own package [`b3cb678`](https://github.com/gohugoio/hugo/commit/b3cb6788b) [@&#8203;bep](https://github.com/bep) [#&#8203;11256](https://github.com/gohugoio/hugo/issues/11256) - Remove unused autogenerated method [`36b5126`](https://github.com/gohugoio/hugo/commit/36b512605) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add BenchmarkWhereOps [`ef6e813`](https://github.com/gohugoio/hugo/commit/ef6e813ca) [@&#8203;bep](https://github.com/bep) - tpl/collections: Add like operator to where function [`f4598a0`](https://github.com/gohugoio/hugo/commit/f4598a098) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11279](https://github.com/gohugoio/hugo/issues/11279) - Use os.UserCacheDir as first fallback if cacheDir is not set [`b3f1055`](https://github.com/gohugoio/hugo/commit/b3f10556f) [@&#8203;bep](https://github.com/bep) [#&#8203;11286](https://github.com/gohugoio/hugo/issues/11286) [#&#8203;11291](https://github.com/gohugoio/hugo/issues/11291) - Add a common regexp cache [`4d7af75`](https://github.com/gohugoio/hugo/commit/4d7af757c) [@&#8203;bep](https://github.com/bep) - commands: Replace deprecated ioutil with os [`2589b12`](https://github.com/gohugoio/hugo/commit/2589b1295) [@&#8203;alexandear](https://github.com/alexandear) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.18.11 to 0.18.17 [`d7db096`](https://github.com/gohugoio/hugo/commit/d7db096a9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/rogpeppe/go-internal [`5542f02`](https://github.com/gohugoio/hugo/commit/5542f02fb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.8.0 to 0.9.0 [`0bc7ed9`](https://github.com/gohugoio/hugo/commit/0bc7ed9a1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Upgrade github.com/yuin/goldmark v1.5.4 => v1.5.5 [`739d10e`](https://github.com/gohugoio/hugo/commit/739d10e8b) [@&#8203;jmooring](https://github.com/jmooring) ##### Documentation - docs: Regenerate CLI docs [`d297c8e`](https://github.com/gohugoio/hugo/commit/d297c8e1b) [@&#8203;bep](https://github.com/bep) - docs: Update where [`d524778`](https://github.com/gohugoio/hugo/commit/d5247788e) [@&#8203;bep](https://github.com/bep) - docs: Update where function operators [`036e260`](https://github.com/gohugoio/hugo/commit/036e260d8) [@&#8203;jmooring](https://github.com/jmooring) - docs: Rework the cacheDir documentation [`a50356b`](https://github.com/gohugoio/hugo/commit/a50356b9a) [@&#8203;bep](https://github.com/bep) ##### Build Setup - snap: Set cache location to $HOME/.cache/hugo\_cache [`9163973`](https://github.com/gohugoio/hugo/commit/916397320) [@&#8203;jmooring](https://github.com/jmooring) - snap: Allow access to SSH keys and $HOME/.config/hugo [`575d7f8`](https://github.com/gohugoio/hugo/commit/575d7f806) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11288](https://github.com/gohugoio/hugo/issues/11288) ### [`v0.115.4`](https://github.com/gohugoio/hugo/releases/tag/v0.115.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.115.3...v0.115.4) ##### Bug fixes - Fix broken handling of legacy taxonomyTerm in disableKinds [`d70b6c7`](https://github.com/gohugoio/hugo/commit/d70b6c7d) [@&#8203;bep](https://github.com/bep) [#&#8203;11257](https://github.com/gohugoio/hugo/issues/11257) - Fix cache busting setup [`6bbec90`](https://github.com/gohugoio/hugo/commit/6bbec900) [@&#8203;bep](https://github.com/bep) [#&#8203;11268](https://github.com/gohugoio/hugo/issues/11268) - common/htime: Fix localization of abbreviated month names [`2f11e67`](https://github.com/gohugoio/hugo/commit/2f11e673) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11267](https://github.com/gohugoio/hugo/issues/11267) - Fix setting config from env with complex (e.g. YAML) strings [`c406fd3`](https://github.com/gohugoio/hugo/commit/c406fd3a) [@&#8203;bep](https://github.com/bep) [#&#8203;11249](https://github.com/gohugoio/hugo/issues/11249) - Fix for data mounts in sub folders [`286821e`](https://github.com/gohugoio/hugo/commit/286821e3) [@&#8203;dvdksn](https://github.com/dvdksn) ##### Improvements - commands: Move testscript into its correct place [`d947db3`](https://github.com/gohugoio/hugo/commit/d947db37) [@&#8203;bep](https://github.com/bep) - publisher: Improve class collector for dynamic classes [`d8c94c3`](https://github.com/gohugoio/hugo/commit/d8c94c35) [@&#8203;bep](https://github.com/bep) - commands: Delay server builds after the watcher is set up [`5bd22ba`](https://github.com/gohugoio/hugo/commit/5bd22ba8) [@&#8203;bep](https://github.com/bep) [#&#8203;11264](https://github.com/gohugoio/hugo/issues/11264) - Create hugo\_stats.json if it's mounted but does not exists [`7ae62f4`](https://github.com/gohugoio/hugo/commit/7ae62f4a) [@&#8203;bep](https://github.com/bep) [#&#8203;11264](https://github.com/gohugoio/hugo/issues/11264) - Re-instate disableLiveReload as a config option (and not just a flag) [`f1a061e`](https://github.com/gohugoio/hugo/commit/f1a061e9) [@&#8203;bep](https://github.com/bep) [#&#8203;11259](https://github.com/gohugoio/hugo/issues/11259) - Improve error messages for PostCSS etc. [`387c5f6`](https://github.com/gohugoio/hugo/commit/387c5f60) [@&#8203;bep](https://github.com/bep) [#&#8203;9730](https://github.com/gohugoio/hugo/issues/9730) ### [`v0.115.3`](https://github.com/gohugoio/hugo/releases/tag/v0.115.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.115.2...v0.115.3) ##### What's Changed - Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled [`cc44583`](https://github.com/gohugoio/hugo/commit/cc44583c) [@&#8203;bep](https://github.com/bep) [#&#8203;11229](https://github.com/gohugoio/hugo/issues/11229) - Return error when .Render is invoked without arg [`4da672a`](https://github.com/gohugoio/hugo/commit/4da672af) [@&#8203;bep](https://github.com/bep) [#&#8203;11243](https://github.com/gohugoio/hugo/issues/11243) - js: Pass tsconfig.json to esBuild [`f1886f8`](https://github.com/gohugoio/hugo/commit/f1886f8c) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11232](https://github.com/gohugoio/hugo/issues/11232) - tpl/collections: Fix WordCount (etc.) regression in Where, Sort, Delimit [`5bec508`](https://github.com/gohugoio/hugo/commit/5bec5083) [@&#8203;bep](https://github.com/bep) [#&#8203;11234](https://github.com/gohugoio/hugo/issues/11234) - config/allconfig: Update timeout description [`f650e4d`](https://github.com/gohugoio/hugo/commit/f650e4d7) [@&#8203;jmooring](https://github.com/jmooring) - docs: Refresh docs.json [`c934a45`](https://github.com/gohugoio/hugo/commit/c934a450) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.115.2`](https://github.com/gohugoio/hugo/releases/tag/v0.115.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.115.1...v0.115.2) ##### Bug fixes - Fix hugo mod vendor for modules with hugo.toml [`0f921ac`](https://github.com/gohugoio/hugo/commit/0f921ace) [@&#8203;bep](https://github.com/bep) [#&#8203;11221](https://github.com/gohugoio/hugo/issues/11221) - Fix static content files multilingual root regression [`6019953`](https://github.com/gohugoio/hugo/commit/60199537) [@&#8203;bep](https://github.com/bep) [#&#8203;11223](https://github.com/gohugoio/hugo/issues/11223) - Fix defaultContentLanguageInSubdir with only 1 language [`92e8670`](https://github.com/gohugoio/hugo/commit/92e86702) [@&#8203;bep](https://github.com/bep) [#&#8203;10064](https://github.com/gohugoio/hugo/issues/10064) - Make imageConfig work with modules [`a78b17d`](https://github.com/gohugoio/hugo/commit/a78b17d7) [@&#8203;bep](https://github.com/bep) [#&#8203;11205](https://github.com/gohugoio/hugo/issues/11205) - Restore language.disabled config [`a481942`](https://github.com/gohugoio/hugo/commit/a4819425) [@&#8203;bep](https://github.com/bep) [#&#8203;11219](https://github.com/gohugoio/hugo/issues/11219) ##### Improvements - config: Expand default security.exec.osEnv policy [`6c9ea02`](https://github.com/gohugoio/hugo/commit/6c9ea022) [@&#8203;dvdksn](https://github.com/dvdksn) [#&#8203;9333](https://github.com/gohugoio/hugo/issues/9333) - Add titleCaseStyle none and firstupper [`12d3469`](https://github.com/gohugoio/hugo/commit/12d3469d) [@&#8203;bep](https://github.com/bep) [#&#8203;11204](https://github.com/gohugoio/hugo/issues/11204) - Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0 [`bf7ee8a`](https://github.com/gohugoio/hugo/commit/bf7ee8a9) [@&#8203;anthonyfok](https://github.com/anthonyfok) ##### Build Setup - snap: Allow access to AWS, Azure, and GCS config/credentials [`7251096`](https://github.com/gohugoio/hugo/commit/72510969) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11122](https://github.com/gohugoio/hugo/issues/11122) - snap: Update metadata and security.exec.osEnv [`70c5e48`](https://github.com/gohugoio/hugo/commit/70c5e485) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11217](https://github.com/gohugoio/hugo/issues/11217) ### [`v0.115.1`](https://github.com/gohugoio/hugo/releases/tag/v0.115.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.115.0...v0.115.1) ##### Bug fixes - Fix buildStats when tags and classes are disabled [`ceb486f`](https://github.com/gohugoio/hugo/commit/ceb486f9) [@&#8203;bep](https://github.com/bep) [#&#8203;11202](https://github.com/gohugoio/hugo/issues/11202) - commands: Fix index out of range in hugo mod get [`0ff8e13`](https://github.com/gohugoio/hugo/commit/0ff8e13c) [@&#8203;bep](https://github.com/bep) [#&#8203;11190](https://github.com/gohugoio/hugo/issues/11190) ##### Improvements - Rework the build.writeStats struct [`5afc89f`](https://github.com/gohugoio/hugo/commit/5afc89f2) [@&#8203;bep](https://github.com/bep) [#&#8203;11191](https://github.com/gohugoio/hugo/issues/11191) - github: Build for Dragonfly in CI build [`19d76ae`](https://github.com/gohugoio/hugo/commit/19d76ae9) [@&#8203;bep](https://github.com/bep) - Make build.writeStats a struct [`11ecea6`](https://github.com/gohugoio/hugo/commit/11ecea61) [@&#8203;bep](https://github.com/bep) [#&#8203;11191](https://github.com/gohugoio/hugo/issues/11191) - Only print the path warnings once [`ffd37d4`](https://github.com/gohugoio/hugo/commit/ffd37d4f) [@&#8203;bep](https://github.com/bep) [#&#8203;11187](https://github.com/gohugoio/hugo/issues/11187) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.18.10 to 0.18.11 [`da98724`](https://github.com/gohugoio/hugo/commit/da98724b) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/alecthomas/chroma/v2 from 2.7.0 to 2.8.0 [`4d470bb`](https://github.com/gohugoio/hugo/commit/4d470bb7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docs helper [`c27639b`](https://github.com/gohugoio/hugo/commit/c27639b9) [@&#8203;bep](https://github.com/bep) - Update README.md [`b4b6524`](https://github.com/gohugoio/hugo/commit/b4b65245) [@&#8203;bep](https://github.com/bep) ##### Build Setup - snap: Explicitly set security.exec.osenv during build [`c1eac61`](https://github.com/gohugoio/hugo/commit/c1eac616) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11199](https://github.com/gohugoio/hugo/issues/11199) - snap: Restore security.exec.osenv whitelist [`3c8256a`](https://github.com/gohugoio/hugo/commit/3c8256a1) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11195](https://github.com/gohugoio/hugo/issues/11195) ### [`v0.115.0`](https://github.com/gohugoio/hugo/releases/tag/v0.115.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.114.1...v0.115.0) The notable new feature in this release is that you can now have permalink configuration also for section and taxonomy pages. Thanks to [@&#8203;Mai-Lapyst](https://github.com/Mai-Lapyst) for the implementation. See the [documentation](https://gohugo.io/content-management/urls/#permalinks) for more information. ##### Bug fixes - commands: Fix panic when running hugo new theme without theme name [`635cc34`](https://github.com/gohugoio/hugo/commit/635cc346) [@&#8203;deining](https://github.com/deining) [#&#8203;11162](https://github.com/gohugoio/hugo/issues/11162) - Fix output formats and media type per language config regression [`79639c9`](https://github.com/gohugoio/hugo/commit/79639c98) [@&#8203;bep](https://github.com/bep) [#&#8203;11159](https://github.com/gohugoio/hugo/issues/11159) - common/collections: Fix append regression to allow appending nil [`b74b8d6`](https://github.com/gohugoio/hugo/commit/b74b8d64) [@&#8203;khayyamsaleem](https://github.com/khayyamsaleem) [#&#8203;11180](https://github.com/gohugoio/hugo/issues/11180) - commands: Fix help message for hugo new theme [`793e38f`](https://github.com/gohugoio/hugo/commit/793e38f5) [@&#8203;deining](https://github.com/deining) [#&#8203;11161](https://github.com/gohugoio/hugo/issues/11161) - Fix false path warnings with resources.PostProcess [`fa0e16f`](https://github.com/gohugoio/hugo/commit/fa0e16f4) [@&#8203;bep](https://github.com/bep) [#&#8203;7735](https://github.com/gohugoio/hugo/issues/7735) - tpl/tplimpl: Fix typo in global variable name [`e3308a0`](https://github.com/gohugoio/hugo/commit/e3308a0b) [@&#8203;alexandear](https://github.com/alexandear) - Fix broken nodeploy setup [`5b4bfc2`](https://github.com/gohugoio/hugo/commit/5b4bfc2d) [@&#8203;bep](https://github.com/bep) [#&#8203;11149](https://github.com/gohugoio/hugo/issues/11149) ##### Improvements - Misc permalinks adjustments [`7917961`](https://github.com/gohugoio/hugo/commit/7917961d) [@&#8203;bep](https://github.com/bep) [#&#8203;9448](https://github.com/gohugoio/hugo/issues/9448) [#&#8203;11184](https://github.com/gohugoio/hugo/issues/11184) [#&#8203;8523](https://github.com/gohugoio/hugo/issues/8523) - commands: Handle hugo mod get --help [`80ecb95`](https://github.com/gohugoio/hugo/commit/80ecb958) [@&#8203;bep](https://github.com/bep) [#&#8203;11141](https://github.com/gohugoio/hugo/issues/11141) - Print help message when triggered with no flags [`1264675`](https://github.com/gohugoio/hugo/commit/12646750) [@&#8203;roshanavand](https://github.com/roshanavand) - Don't panic on invalid security whitelist regexp [`7f698c8`](https://github.com/gohugoio/hugo/commit/7f698c89) [@&#8203;bep](https://github.com/bep) [#&#8203;11176](https://github.com/gohugoio/hugo/issues/11176) - Merge branch 'master' of github.com:gohugoio/hugo [`bac03f4`](https://github.com/gohugoio/hugo/commit/bac03f40) [@&#8203;bep](https://github.com/bep) - resources/page: Allow section and taxonomy pages to have a permalink configuration [`cc14c6a`](https://github.com/gohugoio/hugo/commit/cc14c6a5) [@&#8203;Mai-Lapyst](https://github.com/Mai-Lapyst) [#&#8203;8523](https://github.com/gohugoio/hugo/issues/8523) - commands: Enable format flag with hugo new site [`019299b`](https://github.com/gohugoio/hugo/commit/019299b0) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11155](https://github.com/gohugoio/hugo/issues/11155) ##### Dependency Updates - build(deps): bump github.com/evanw/esbuild from 0.18.5 to 0.18.10 [`9b313ce`](https://github.com/gohugoio/hugo/commit/9b313cec) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/niklasfasching/go-org from 1.6.6 to 1.7.0 [`92f55f1`](https://github.com/gohugoio/hugo/commit/92f55f11) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - Update README.md [`58e09cc`](https://github.com/gohugoio/hugo/commit/58e09cc6) [@&#8203;jmooring](https://github.com/jmooring) - docs: Update permalinks documentation [`12e4c4d`](https://github.com/gohugoio/hugo/commit/12e4c4d5) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8523](https://github.com/gohugoio/hugo/issues/8523) [#&#8203;10847](https://github.com/gohugoio/hugo/issues/10847) - Update README.md [`23ed087`](https://github.com/gohugoio/hugo/commit/23ed087c) [@&#8203;bep](https://github.com/bep) ##### Build Setup - Merge branch 'release-0.114.1' [`a018259`](https://github.com/gohugoio/hugo/commit/a018259b) [@&#8203;bep](https://github.com/bep) ### [`v0.114.1`](https://github.com/gohugoio/hugo/releases/tag/v0.114.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.114.0...v0.114.1) ##### Bug fixes - Fix broken nodeploy setup [`078226d`](https://github.com/gohugoio/hugo/commit/078226dd) [@&#8203;bep](https://github.com/bep) [#&#8203;11149](https://github.com/gohugoio/hugo/issues/11149) - commands: Make hugo env respect --logLevel [`b1016d2`](https://github.com/gohugoio/hugo/commit/b1016d2e) [@&#8203;bep](https://github.com/bep) [#&#8203;11145](https://github.com/gohugoio/hugo/issues/11145) ##### Improvements - commands: Update Jekyll post-import output [`49336bf`](https://github.com/gohugoio/hugo/commit/49336bfc) [@&#8203;brianknight10](https://github.com/brianknight10) [#&#8203;10715](https://github.com/gohugoio/hugo/issues/10715) ##### Dependency Updates - Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.30.0" [`ae31dbd`](https://github.com/gohugoio/hugo/commit/ae31dbdd) [@&#8203;bep](https://github.com/bep) - build(deps): bump gocloud.dev from 0.24.0 to 0.30.0 [`9418182`](https://github.com/gohugoio/hugo/commit/94181829) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.18.4 to 0.18.5 [`5491e55`](https://github.com/gohugoio/hugo/commit/5491e554) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.7 [`bf7af90`](https://github.com/gohugoio/hugo/commit/bf7af904) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11132](https://github.com/gohugoio/hugo/issues/11132) ##### Build Setup - snap: Switch from Embedded Dart Sass to Dart Sass ([#&#8203;11146](https://github.com/gohugoio/hugo/issues/11146)) [`06d228a`](https://github.com/gohugoio/hugo/commit/06d228aa) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.114.0`](https://github.com/gohugoio/hugo/releases/tag/v0.114.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.113.0...v0.114.0) The main new thing in this release is that we now support both major versions of the Dart Sass Embedded protocol, which means that you now can use the regular [Dart Sass](https://github.com/sass/dart-sass/releases) binary. We measured the new protocol to be [faster with high concurrency](https://github.com/bep/godartsass/pull/17): ``` name old time/op new time/op delta Transpiler/SCSS-10 114µs ± 0% 145µs ± 1% +26.40% (p=0.029 n=4+4) Transpiler/Start_and_Execute-10 25.6ms ± 2% 26.0ms ± 3% ~ (p=0.486 n=4+4) Transpiler/SCSS_Parallel-10 89.0µs ± 2% 44.4µs ± 3% -50.12% (p=0.029 n=4+4) name old alloc/op new alloc/op delta Transpiler/SCSS-10 1.33kB ± 1% 1.33kB ± 0% ~ (p=1.000 n=4+4) Transpiler/Start_and_Execute-10 22.4kB ± 1% 22.4kB ± 1% ~ (p=0.886 n=4+4) Transpiler/SCSS_Parallel-10 1.34kB ± 3% 1.33kB ± 1% ~ (p=1.000 n=4+4) name old allocs/op new allocs/op delta Transpiler/SCSS-10 18.0 ± 0% 18.0 ± 0% ~ (all equal) Transpiler/Start_and_Execute-10 144 ± 1% 150 ± 0% +4.16% (p=0.029 n=4+4) Transpiler/SCSS_Parallel-10 18.0 ± 0% 18.0 ± 0% ~ (all equal) ``` We have also moved to a new log library and added some new [math functions](https://gohugo.io/functions/math/) and also revised the existing set to work better with a mix of scalars and slices. ##### Notes - We have removed the flags `--log`, `--verboseLog`, added the new flag `--logLevel` and deprecated `--verbose` and `--debug` See [#&#8203;11088](https://github.com/gohugoio/hugo/issues/11088) - This release contains a security fix in the upstream Go HTML template library disallowing JavaScript inside backticks by default. See [golang/go#59234](https://github.com/golang/go/issues/59234) If you really need this and are sure this isn't a security risk in your case, you can revert to the old behaviour: ```toml [security] [security.gotemplates] allowActionJSTmpl = true ``` ##### Bug fixes - common/loggers: Drop the bold INFO etc. prefixes [`6dfbd24`](https://github.com/gohugoio/hugo/commit/6dfbd247) [@&#8203;bep](https://github.com/bep) - all: Fix some typos [`68d9d3e`](https://github.com/gohugoio/hugo/commit/68d9d3eb) [@&#8203;deining](https://github.com/deining) - all: Fix typos in function names and comments [`9009c8c`](https://github.com/gohugoio/hugo/commit/9009c8cd) [@&#8203;alexandear](https://github.com/alexandear) - deploy: Fix deploy defaults for non-zero flag values (e.g. maxDeletes, invalidateCDN) [`12dc9a6`](https://github.com/gohugoio/hugo/commit/12dc9a6e) [@&#8203;bep](https://github.com/bep) [#&#8203;11127](https://github.com/gohugoio/hugo/issues/11127) - Fix upstream Go templates bug with reversed key/value assignment [`ee359df`](https://github.com/gohugoio/hugo/commit/ee359df1) [@&#8203;bep](https://github.com/bep) [#&#8203;11112](https://github.com/gohugoio/hugo/issues/11112) - tpl/collections: Fix append when appending a slice to a slice of slices [`d178fe9`](https://github.com/gohugoio/hugo/commit/d178fe94) [@&#8203;bep](https://github.com/bep) [#&#8203;11093](https://github.com/gohugoio/hugo/issues/11093) - Fix .Width and .Height for animated gifs [`21d1756`](https://github.com/gohugoio/hugo/commit/21d17566) [@&#8203;bep](https://github.com/bep) [#&#8203;11079](https://github.com/gohugoio/hugo/issues/11079) - Fix config merge regression with root slices (e.g. disableKinds) [`60a2cdf`](https://github.com/gohugoio/hugo/commit/60a2cdf7) [@&#8203;bep](https://github.com/bep) [#&#8203;11089](https://github.com/gohugoio/hugo/issues/11089) - Fix handling of aliases (e.g. hugo serve) [`0541a1b`](https://github.com/gohugoio/hugo/commit/0541a1b5) [@&#8203;bep](https://github.com/bep) [#&#8203;11090](https://github.com/gohugoio/hugo/issues/11090) - commands,config: Fix typo in log and error messages [`b8526f3`](https://github.com/gohugoio/hugo/commit/b8526f32) [@&#8203;alexandear](https://github.com/alexandear) - Fix indented SASS imports for Dart Sass [`c782ebd`](https://github.com/gohugoio/hugo/commit/c782ebd8) [@&#8203;bep](https://github.com/bep) [#&#8203;11074](https://github.com/gohugoio/hugo/issues/11074) ##### Improvements - Add empty Environ when loading test config [`3ab8465`](https://github.com/gohugoio/hugo/commit/3ab84651) [@&#8203;bep](https://github.com/bep) - loggers: Avoid using Logf for the LevelLoggerToWriter [`f59c3c0`](https://github.com/gohugoio/hugo/commit/f59c3c02) [@&#8203;bep](https://github.com/bep) - tocss/dartsas: Avoid using Logf for the internal Dart Sass logging [`3ca29b1`](https://github.com/gohugoio/hugo/commit/3ca29b15) [@&#8203;bep](https://github.com/bep) - helpers: Remove superflous formatting flag in deprecation warnings [`fdb0b7f`](https://github.com/gohugoio/hugo/commit/fdb0b7fb) [@&#8203;bep](https://github.com/bep) - common/loggers: Re-add trailing newline in logger.Printf [`1b85303`](https://github.com/gohugoio/hugo/commit/1b85303a) [@&#8203;bep](https://github.com/bep) [#&#8203;11130](https://github.com/gohugoio/hugo/issues/11130) - Replace the old log setup, with structured logging etc. [`7c9fada`](https://github.com/gohugoio/hugo/commit/7c9fada7) [@&#8203;bep](https://github.com/bep) [#&#8203;11124](https://github.com/gohugoio/hugo/issues/11124) - common/collections: Always make a copy of the input slice in Append [`f73c567`](https://github.com/gohugoio/hugo/commit/f73c5675) [@&#8203;bep](https://github.com/bep) [#&#8203;10458](https://github.com/gohugoio/hugo/issues/10458) - Re-add site.RSSLink (and deprecate it) [`90b2674`](https://github.com/gohugoio/hugo/commit/90b2674d) [@&#8203;bep](https://github.com/bep) [#&#8203;11110](https://github.com/gohugoio/hugo/issues/11110) - tpl/math: Allow variadic math functions to take slice args, add math.Product, math.Sum [`2ba2271`](https://github.com/gohugoio/hugo/commit/2ba2271e) [@&#8203;bep](https://github.com/bep) [#&#8203;11030](https://github.com/gohugoio/hugo/issues/11030) - commands: Remove flags log, verboseLog, add flag logLevel, deprecate flags verbose and debug [`ef147f4`](https://github.com/gohugoio/hugo/commit/ef147f4e) [@&#8203;bep](https://github.com/bep) [#&#8203;9648](https://github.com/gohugoio/hugo/issues/9648) [#&#8203;11071](https://github.com/gohugoio/hugo/issues/11071) - cache: Set default cache path based on $USER [`258884f`](https://github.com/gohugoio/hugo/commit/258884f4) [@&#8203;Sircular](https://github.com/Sircular) [#&#8203;7391](https://github.com/gohugoio/hugo/issues/7391) - resources: Remove failing and superflous test assertion [`69f0e88`](https://github.com/gohugoio/hugo/commit/69f0e88a) [@&#8203;bep](https://github.com/bep) - helpers: Avoid url.Parse in RelURL and AbsURL if we can [`ed7e250`](https://github.com/gohugoio/hugo/commit/ed7e2500) [@&#8203;bep](https://github.com/bep) - Adjust benchmarks [`6a09e7f`](https://github.com/gohugoio/hugo/commit/6a09e7f2) [@&#8203;bep](https://github.com/bep) - Adjust benchmark [`29e5cbb`](https://github.com/gohugoio/hugo/commit/29e5cbb6) [@&#8203;bep](https://github.com/bep) - Add BenchmarkAbsURL [`ded6866`](https://github.com/gohugoio/hugo/commit/ded68660) [@&#8203;bep](https://github.com/bep) - helpers: Improve schema detection when creating relative URLs [`e1d4302`](https://github.com/gohugoio/hugo/commit/e1d43021) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11080](https://github.com/gohugoio/hugo/issues/11080) - helpers: Add a basic benchmark for RelURL [`5db215d`](https://github.com/gohugoio/hugo/commit/5db215d4) [@&#8203;bep](https://github.com/bep) - config: Remove unexpected \_merge keys introduced in author and social maps [`b7dc93c`](https://github.com/gohugoio/hugo/commit/b7dc93ca) [@&#8203;bep](https://github.com/bep) [#&#8203;11083](https://github.com/gohugoio/hugo/issues/11083) - Upgrade to v2 of the Dart Sass Embedded Protocol [`f210188`](https://github.com/gohugoio/hugo/commit/f210188d) [@&#8203;bep](https://github.com/bep) [#&#8203;11059](https://github.com/gohugoio/hugo/issues/11059) ##### Dependency Updates - Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0" [`59300fa`](https://github.com/gohugoio/hugo/commit/59300faa) [@&#8203;bep](https://github.com/bep) - Revert "deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6" [`49dd53a`](https://github.com/gohugoio/hugo/commit/49dd53a4) [@&#8203;bep](https://github.com/bep) [#&#8203;11132](https://github.com/gohugoio/hugo/issues/11132) - build(deps): bump github.com/evanw/esbuild from 0.18.3 to 0.18.4 [`8a04d47`](https://github.com/gohugoio/hugo/commit/8a04d47a) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.18.2 to 0.18.3 [`aaf2e96`](https://github.com/gohugoio/hugo/commit/aaf2e969) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/sync from 0.2.0 to 0.3.0 [`0f989d5`](https://github.com/gohugoio/hugo/commit/0f989d5e) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.123.0 to 0.127.0 [`732dcb8`](https://github.com/gohugoio/hugo/commit/732dcb84) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.9.1 to 0.9.3 [`944859f`](https://github.com/gohugoio/hugo/commit/944859f1) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.11 to 2.2.12 [`bb9377b`](https://github.com/gohugoio/hugo/commit/bb9377b5) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.117.0 to 0.118.0 [`e88f1b8`](https://github.com/gohugoio/hugo/commit/e88f1b80) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/net from 0.10.0 to 0.11.0 [`516f0cb`](https://github.com/gohugoio/hugo/commit/516f0cb6) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.24.0 to 0.29.0 [`7bed16c`](https://github.com/gohugoio/hugo/commit/7bed16c3) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.7.0 to 0.8.0 [`e08cfc8`](https://github.com/gohugoio/hugo/commit/e08cfc8c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/magefile/mage from 1.14.0 to 1.15.0 [`4895195`](https://github.com/gohugoio/hugo/commit/48951956) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.8 [`91c0b0f`](https://github.com/gohugoio/hugo/commit/91c0b0f7) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/evanw/esbuild from 0.17.19 to 0.18.2 [`baef235`](https://github.com/gohugoio/hugo/commit/baef235d) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump go.uber.org/atomic from 1.10.0 to 1.11.0 [`254c2b3`](https://github.com/gohugoio/hugo/commit/254c2b32) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/hairyhenderson/go-codeowners [`84f71ba`](https://github.com/gohugoio/hugo/commit/84f71ba8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/frankban/quicktest from 1.14.4 to 1.14.5 [`82adc97`](https://github.com/gohugoio/hugo/commit/82adc972) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.19 [`60533fd`](https://github.com/gohugoio/hugo/commit/60533fdc) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/spf13/afero from 1.9.3 to 1.9.5 [`261143b`](https://github.com/gohugoio/hugo/commit/261143bb) [@&#8203;dependabot](https://github.com/dependabot)\[bot] ##### Documentation - docs: Regen docshelper [`9f98b3e`](https://github.com/gohugoio/hugo/commit/9f98b3e7) [@&#8203;bep](https://github.com/bep) - docs: Regen CLI docs [`7241b5f`](https://github.com/gohugoio/hugo/commit/7241b5fd) [@&#8203;bep](https://github.com/bep) ##### Build Setup - Revert "snap: Transition base snap from core20 to core22 ([#&#8203;11101](https://github.com/gohugoio/hugo/issues/11101))" ([#&#8203;11125](https://github.com/gohugoio/hugo/issues/11125)) [`0e79446`](https://github.com/gohugoio/hugo/commit/0e794465) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;11116](https://github.com/gohugoio/hugo/issues/11116) - snap: Transition base snap from core20 to core22 ([#&#8203;11101](https://github.com/gohugoio/hugo/issues/11101)) [`35e9b3e`](https://github.com/gohugoio/hugo/commit/35e9b3ed) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.113.0`](https://github.com/gohugoio/hugo/releases/tag/v0.113.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.7...v0.113.0) This release adds TLS/HTTPS support to `hugo server` (see [`cf38c73`](https://github.com/gohugoio/hugo/commit/cf38c73f) and [#&#8203;11064](https://github.com/gohugoio/hugo/issues/11064) for details) entirely backed by [mkcert](https://github.com/FiloSottile/mkcert). We still default to `http` which is recommended and good enough for 99% of the Hugo use, but there are [some situations](https://web.dev/when-to-use-local-https/) where you really need it. We have added a new sub command and some new flags to `hugo server` to enable this: ``` # Installs a local CA in the system root store. You only need to do this once. hugo server trust # Generates locally-trusted certificates (if not already created) and starts the server with TLS/HTTPS enabled. hugo server --tlsAuto ``` Note that we just delegate to [mkcert](https://github.com/FiloSottile/mkcert) using its default settings, so all of their documentation is relevant. Also note that this is currently only supported for Linux, MacOS and Windows. And if you install on Linux using Snap, you will currently get an access denied error when running `hugo server trust`. A workaround for that, or if you need to use some of mkcert's advanced options, is to use mkcert directly to install the local CA: ``` go install filippo.io/mkcert@latest mkcert -install ``` You can then start the server with `hugo server --tlsAuto`. If you have obtained the TLS certificate and key file by other means, you can use the `--tlsCertFile` and `--tlsKeyFile` flags. When `--tlsAuto` or `--tlsCertFile` and `--tlsKeyFile` is set and no `--baseURL` is provided as a flag, the server is started with TLS and `https` as the protocol. ### [`v0.112.7`](https://github.com/gohugoio/hugo/releases/tag/v0.112.7) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.6...v0.112.7) ##### What's Changed - Fix menuItem.URL when pageRef is not set [`5e5ce00`](https://github.com/gohugoio/hugo/commit/5e5ce00d) [@&#8203;bep](https://github.com/bep) [#&#8203;11062](https://github.com/gohugoio/hugo/issues/11062) - Don't inject livereload script on hugo -w [`a191b38`](https://github.com/gohugoio/hugo/commit/a191b38a) [@&#8203;bep](https://github.com/bep) [#&#8203;11061](https://github.com/gohugoio/hugo/issues/11061) - markup: Fix typo in function and struct names [`382c726`](https://github.com/gohugoio/hugo/commit/382c726e) [@&#8203;alexandear](https://github.com/alexandear) - all: Replace deprecated ioutil with io and os [`4c46f94`](https://github.com/gohugoio/hugo/commit/4c46f940) [@&#8203;alexandear](https://github.com/alexandear) ### [`v0.112.6`](https://github.com/gohugoio/hugo/releases/tag/v0.112.6) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.5...v0.112.6) - github: Fix Windows build [`06faee5`](https://github.com/gohugoio/hugo/commit/06faee5b) [@&#8203;bep](https://github.com/bep) [#&#8203;11052](https://github.com/gohugoio/hugo/issues/11052) - Fix potential deadlock in ByParam [`3258569`](https://github.com/gohugoio/hugo/commit/32585696) [@&#8203;bep](https://github.com/bep) [#&#8203;11039](https://github.com/gohugoio/hugo/issues/11039) - commands: Add --lang to hugo config [`0ef2952`](https://github.com/gohugoio/hugo/commit/0ef29528) [@&#8203;bep](https://github.com/bep) [#&#8203;11057](https://github.com/gohugoio/hugo/issues/11057) - Make sure any default mounts show up in "hugo config" [`e3ae8f0`](https://github.com/gohugoio/hugo/commit/e3ae8f02) [@&#8203;bep](https://github.com/bep) [#&#8203;11040](https://github.com/gohugoio/hugo/issues/11040) - tpl/tplimpl: Use .Language.LanguageCode in built-in templates [`ff77a92`](https://github.com/gohugoio/hugo/commit/ff77a927) [@&#8203;jmooring](https://github.com/jmooring) - Fail on invalid defaultContentLanguage [`9cdca1f`](https://github.com/gohugoio/hugo/commit/9cdca1f9) [@&#8203;bep](https://github.com/bep) [#&#8203;11044](https://github.com/gohugoio/hugo/issues/11044) - Avoid panic in invalid language config [`6462eec`](https://github.com/gohugoio/hugo/commit/6462eecf) [@&#8203;bep](https://github.com/bep) [#&#8203;11046](https://github.com/gohugoio/hugo/issues/11046) - Don't panic on empty yaml config params [`a7d6b14`](https://github.com/gohugoio/hugo/commit/a7d6b141) [@&#8203;bep](https://github.com/bep) [#&#8203;11047](https://github.com/gohugoio/hugo/issues/11047) - Prevent double escaping of image alt-text in Goldmar typographer [`3f497d4`](https://github.com/gohugoio/hugo/commit/3f497d49) [@&#8203;bep](https://github.com/bep) [#&#8203;11045](https://github.com/gohugoio/hugo/issues/11045) - deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6 [`409c6c3`](https://github.com/gohugoio/hugo/commit/409c6c3f) [@&#8203;jmooring](https://github.com/jmooring) ### [`v0.112.5`](https://github.com/gohugoio/hugo/releases/tag/v0.112.5) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.4...v0.112.5) ##### What's Changed - Fix it so languageCode on top level config still works [`e3dfc76`](https://github.com/gohugoio/hugo/commit/e3dfc76f) [@&#8203;bep](https://github.com/bep) [#&#8203;11037](https://github.com/gohugoio/hugo/issues/11037) ### [`v0.112.4`](https://github.com/gohugoio/hugo/releases/tag/v0.112.4) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.3...v0.112.4) - Fix Processed images count regression for multiple languages [`fd09933`](https://github.com/gohugoio/hugo/commit/fd099331) [@&#8203;bep](https://github.com/bep) [#&#8203;11002](https://github.com/gohugoio/hugo/issues/11002) - Fix --renderStaticToDisk regression [`8f293a1`](https://github.com/gohugoio/hugo/commit/8f293a18) [@&#8203;bep](https://github.com/bep) [#&#8203;11026](https://github.com/gohugoio/hugo/issues/11026) - commands: Add the common build flags to the config commands [`51d0a0a`](https://github.com/gohugoio/hugo/commit/51d0a0ab) [@&#8203;bep](https://github.com/bep) [#&#8203;11018](https://github.com/gohugoio/hugo/issues/11018) - commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod [`43f1282`](https://github.com/gohugoio/hugo/commit/43f1282e) [@&#8203;bep](https://github.com/bep) [#&#8203;11018](https://github.com/gohugoio/hugo/issues/11018) - Don't create the public folder unless needed [`e96cdfe`](https://github.com/gohugoio/hugo/commit/e96cdfe9) [@&#8203;bep](https://github.com/bep) [#&#8203;11031](https://github.com/gohugoio/hugo/issues/11031) - commands: Fail the build when no config file or config dir [`273d9f6`](https://github.com/gohugoio/hugo/commit/273d9f69) [@&#8203;bep](https://github.com/bep) [#&#8203;11019](https://github.com/gohugoio/hugo/issues/11019) - langs: Remove the Language.Params deprecation message for now [`a6257d8`](https://github.com/gohugoio/hugo/commit/a6257d8a) [@&#8203;bep](https://github.com/bep) [#&#8203;11025](https://github.com/gohugoio/hugo/issues/11025) - Add language.LanguageCode [`6c2db0d`](https://github.com/gohugoio/hugo/commit/6c2db0df) [@&#8203;bep](https://github.com/bep) [#&#8203;11027](https://github.com/gohugoio/hugo/issues/11027) - commands: Re-introduce the -f shorthand for hugo new site [`901cd97`](https://github.com/gohugoio/hugo/commit/901cd970) [@&#8203;bep](https://github.com/bep) [#&#8203;11015](https://github.com/gohugoio/hugo/issues/11015) - commands: Move the --format flag to only the commands that support it [`f86b5f7`](https://github.com/gohugoio/hugo/commit/f86b5f70) [@&#8203;bep](https://github.com/bep) [#&#8203;11022](https://github.com/gohugoio/hugo/issues/11022) ##### Documentation - docs: Regenerate CLI docs [`20ea2e0`](https://github.com/gohugoio/hugo/commit/20ea2e0c) [@&#8203;bep](https://github.com/bep) - docs: Regen CLI docs [`ffdbce5`](https://github.com/gohugoio/hugo/commit/ffdbce57) [@&#8203;bep](https://github.com/bep) ### [`v0.112.3`](https://github.com/gohugoio/hugo/releases/tag/v0.112.3) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.2...v0.112.3) ##### What's Changed - Fix regression when loading config -e is empty or HUGO\_ENV or HUGO\_ENVIRONMENT is set [`231374a`](https://github.com/gohugoio/hugo/commit/231374a1) [@&#8203;bep](https://github.com/bep) [#&#8203;11013](https://github.com/gohugoio/hugo/issues/11013) ### [`v0.112.2`](https://github.com/gohugoio/hugo/releases/tag/v0.112.2) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.1...v0.112.2) ##### What's Changed - minifiers: Make sure JS.Version always has a value [`dd67922`](https://github.com/gohugoio/hugo/commit/dd679220) [@&#8203;bep](https://github.com/bep) [#&#8203;11012](https://github.com/gohugoio/hugo/issues/11012) - Fix regression with site.IsServer when not running a server [`9a235d0`](https://github.com/gohugoio/hugo/commit/9a235d0a) [@&#8203;bep](https://github.com/bep) [#&#8203;11006](https://github.com/gohugoio/hugo/issues/11006) ### [`v0.112.1`](https://github.com/gohugoio/hugo/releases/tag/v0.112.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.112.0...v0.112.1) ##### What's Changed - Fix regression when config for OutputFormat.BaseName is an empty string [`ed906a8`](https://github.com/gohugoio/hugo/commit/ed906a86) [@&#8203;bep](https://github.com/bep) [#&#8203;11000](https://github.com/gohugoio/hugo/issues/11000) Also see the main release: <https://github.com/gohugoio/hugo/releases/tag/v0.112.0> ### [`v0.112.0`](https://github.com/gohugoio/hugo/releases/tag/v0.112.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.111.3...v0.112.0) > **Note:** There's a patch release out already, see <https://github.com/gohugoio/hugo/releases/tag/v0.112.1> Proper **TailwindCSS v3.x support**, much improved **language config merge**, consolidation of all Hugo config (check out `hugo config`), rewritten `commands` package (CLI) using [SimpleCobra](https://github.com/bep/simplecobra), Goldmark's typographer extension (quotation marks per language), and more. ##### Headlines ##### TailwindCSS v3.x Support, new cache buster configuration > See <https://github.com/bep/hugo-starter-tailwind-basic> for a running example. TailwindCSS 3 has been out for a while now, and unfortunately their new build strategy didn't work very well with Hugo. But this release adds a new `build.cachebusters` config option for the resource cache that allows more fine grained control over when to trigger a new Tailwind build. This is a generally useful feature, so if you're having issues not seeing your resource changes (e.g. change to a JS file) on change, you could try to tweak the defaults. A tip is to run the server with `hugo server --debug` and watch out for log messages prefixed with `cachebuster:` on file changes. There are several possible setups here, but one that we have tested and that works well is outlined in the config below. The basic concept is to add `hugo_stats.json` to the server watcher list in Hugo and trigger a new TailwindCSS build only whenever either this file or the main CSS file changes. ```toml [module] [[module.mounts]] source = "assets" target = "assets" [[module.mounts]] source = "hugo_stats.json" target = "assets/watching/hugo_stats.json" [build] writeStats = true [[build.cachebusters]] source = "assets/watching/hugo_stats\\.json" target = "styles\\.css" [[build.cachebusters]] source = "(postcss|tailwind)\\.config\\.js" target = "css" [[build.cachebusters]] source = "assets/.*\\.(js|ts|jsx|tsx)" target = "js" [[build.cachebusters]] source = "assets/.*\\.(.*)$" target = "$1" ``` And then in `tailwind.config.js`: ```js module.exports = { content: ['./hugo_stats.json'], }; ``` ##### Reconsolidated all configuration handling For this release we have collected all configuration into one big Go struct and rewritten the command line API using [SimpleCobra](https://github.com/bep/simplecobra). All of this makes the source code easier to maintain and understand, but the original motivation for this was to get a complete and autogenerated API reference for Hugo (we're working on getting that done), but this also have some less technical upsides: ##### 'hugo config' is now complete What you get when running `hugo config` is a complete TOML representation (add `--format json` or `--format yaml` for alternative formats) of *the effective* configuration. As this will include default values and configuration merged in from themes, we don't recommend to copy and paste this into `hugo.toml`, as that would make your configuration very verbose. ##### Improved language config handling See issue [#&#8203;10620](https://github.com/gohugoio/hugo/issues/10620) for some details, but in general, the merge behaviour of sections from `languages` is much improved. In the example below for language `en` you will now get: ```json "comments": { "color": "blue", "title": "English Comments Title", } ``` In earlier versions of Hugo you would get: ```json "comments": { "title": "English Comments Title", } ``` ```toml title = "Base Title" staticDir = "mystatic" [params] [params.comments] color = "blue" title = "Default Comments Title" [languages] [languages.en] title = "English Title" [languages.en.params.comments] title = "English Comments Title" ``` Note that values in a given language will always have precedence over same keys in root (the section inside the language is the receiving side of any merge operation), so, if you want the old (and buggy) behaviour, you can add a merge strategy to one of the `params` sections, e.g: ```toml [languages.en.params.comments] _merge = "none" title = "English Comments Title" ``` You can now also configure just about *everything* per language. One useful example would be the Goldmark `typographer` extension: ```toml [languages.de] languageCode = 'de-DE' languageName = 'Deutsch' weight = 2 [languages.de.markup.goldmark.extensions.typographer] leftDoubleQuote = '&laquo;' # default &ldquo; rightDoubleQuote = '&raquo;' # default &rdquo; ``` ##### More info in verbose build output If you build flag with the `-v`, you will now get timing info for the core building steps in Hugo: ``` INFO 2023/05/16 09:53:55 process in 17 ms INFO 2023/05/16 09:53:55 assemble in 345 ms INFO 2023/05/16 09:53:55 render in 341 ms INFO 2023/05/16 09:53:55 postProcess in 0 ms ``` ##### Notes - openapi2: .ExtensionProps is now .Extensions and just a map. - We have deprecated `site.Language.Params` and configuration of custom params outside of the language `[params]`, see <https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120> for more information. ##### Bug fixes - Fix "unknown command" message when no suggestion [`288be19`](https://github.com/gohugoio/hugo/commit/288be197) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - commands: Fix build logic when listing expired/future draft content [`e6dc805`](https://github.com/gohugoio/hugo/commit/e6dc8053) [@&#8203;bep](https://github.com/bep) [#&#8203;10972](https://github.com/gohugoio/hugo/issues/10972) - commands: Fix data race [`0a51dfa`](https://github.com/gohugoio/hugo/commit/0a51dfac) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - tpl/urls: Fix build broken by a merge [`e4e0313`](https://github.com/gohugoio/hugo/commit/e4e0313c) [@&#8203;bep](https://github.com/bep) - Fix warn message about custom params on the language top level [`ad4bc96`](https://github.com/gohugoio/hugo/commit/ad4bc969) [@&#8203;deining](https://github.com/deining) - Fix some spelling mistakes [`4003c79`](https://github.com/gohugoio/hugo/commit/4003c790) [@&#8203;cuishuang](https://github.com/cuishuang) - all: Fix comments for exported functions and packages [`610ceda`](https://github.com/gohugoio/hugo/commit/610cedaa) [@&#8203;alexandear](https://github.com/alexandear) - modules: Fix format flag in error [`95818e2`](https://github.com/gohugoio/hugo/commit/95818e27) [@&#8203;alexandear](https://github.com/alexandear) - Fix some recently introduced error handling issues [`834b3d7`](https://github.com/gohugoio/hugo/commit/834b3d7e) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - Re-add site.LanguagePrefix [`86b2a27`](https://github.com/gohugoio/hugo/commit/86b2a274) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - Deprecate site.Language.Params and some other fixes [`5d85716`](https://github.com/gohugoio/hugo/commit/5d857165) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - readme: Fix build command [`d01731d`](https://github.com/gohugoio/hugo/commit/d01731d5) [@&#8203;kirisakow](https://github.com/kirisakow) - resources: Fix typos in error message and variables [`891b291`](https://github.com/gohugoio/hugo/commit/891b2918) [@&#8203;alexandear](https://github.com/alexandear) - commands: Fix data race in test [`0fbab7c`](https://github.com/gohugoio/hugo/commit/0fbab7cb) [@&#8203;bep](https://github.com/bep) ##### Improvements - circleci: Add github.com to known hosts [`70b2aaf`](https://github.com/gohugoio/hugo/commit/70b2aaf8) [@&#8203;bep](https://github.com/bep) - Add --format to hugo config [`85b13c1`](https://github.com/gohugoio/hugo/commit/85b13c10) [@&#8203;bep](https://github.com/bep) - postcss: Improve validation of option 'config' [`9a0370e`](https://github.com/gohugoio/hugo/commit/9a0370e8) [@&#8203;deining](https://github.com/deining) - Avoid writing to hugo\_stats.json when there are no changes [`4cac5f5`](https://github.com/gohugoio/hugo/commit/4cac5f5e) [@&#8203;bep](https://github.com/bep) [#&#8203;10985](https://github.com/gohugoio/hugo/issues/10985) - Add cache busting config to support Tailwind 3 [`2c3d4df`](https://github.com/gohugoio/hugo/commit/2c3d4dfb) [@&#8203;bep](https://github.com/bep) [#&#8203;10974](https://github.com/gohugoio/hugo/issues/10974) - commands: Make all list commands list what 'all' did before [`6ca8a40`](https://github.com/gohugoio/hugo/commit/6ca8a40f) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - tpl/tplimpl: Add img loading attribute to figure shortcode ([#&#8203;10927](https://github.com/gohugoio/hugo/issues/10927)) [`2db7ec6`](https://github.com/gohugoio/hugo/commit/2db7ec62) [@&#8203;InLaw](https://github.com/InLaw) - Allow whitelisting mediaTypes used in resources.GetRemote [`2637b4e`](https://github.com/gohugoio/hugo/commit/2637b4ef) [@&#8203;bep](https://github.com/bep) [#&#8203;10286](https://github.com/gohugoio/hugo/issues/10286) - Add hugo.WorkingDir [`7c7baa6`](https://github.com/gohugoio/hugo/commit/7c7baa61) [@&#8203;bep](https://github.com/bep) [#&#8203;10969](https://github.com/gohugoio/hugo/issues/10969) - Make language merging of markup etc. config without values in the root [`4f085e8`](https://github.com/gohugoio/hugo/commit/4f085e80) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - tpl/urls: Return empty string when JoinPath has zero args [`150d190`](https://github.com/gohugoio/hugo/commit/150d190f) [@&#8203;jmooring](https://github.com/jmooring) - Re-add --printUnusedTemplates and --printPathWarnings [`d6197a4`](https://github.com/gohugoio/hugo/commit/d6197a41) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - tpl/urls: Add JoinPath template function [`5b3e165`](https://github.com/gohugoio/hugo/commit/5b3e165b) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9694](https://github.com/gohugoio/hugo/issues/9694) - Allow legacy taxonomyTerm in disableKinds [`03cb38e`](https://github.com/gohugoio/hugo/commit/03cb38e6) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - Make GOMAXPROCS to be CPU limit aware [`008170c`](https://github.com/gohugoio/hugo/commit/008170c8) [@&#8203;BenTheElder](https://github.com/BenTheElder) [#&#8203;10950](https://github.com/gohugoio/hugo/issues/10950) - Allow empty params.mainSections [`7c647bc`](https://github.com/gohugoio/hugo/commit/7c647bca) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - commands: Load config before creating the filesystem [`3f00f47`](https://github.com/gohugoio/hugo/commit/3f00f475) [@&#8203;bep](https://github.com/bep) - github: Trim the test flow a little [`35955f5`](https://github.com/gohugoio/hugo/commit/35955f50) [@&#8203;bep](https://github.com/bep) - commands: Improve the common build flag handling [`8a69ccb`](https://github.com/gohugoio/hugo/commit/8a69ccbb) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - Support, but warn, about top level language custom params [`7ce033a`](https://github.com/gohugoio/hugo/commit/7ce033a8) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - Handle transient errors in config loading etc. [`0554213`](https://github.com/gohugoio/hugo/commit/05542130) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - Re-establish all the server flags [`5251f01`](https://github.com/gohugoio/hugo/commit/5251f015) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - Revert "Make GOMAXPROCS CPU limit aware" [`0106cf1`](https://github.com/gohugoio/hugo/commit/0106cf1a) [@&#8203;bep](https://github.com/bep) - Make GOMAXPROCS CPU limit aware [`59050f9`](https://github.com/gohugoio/hugo/commit/59050f97) [@&#8203;BenTheElder](https://github.com/BenTheElder) [#&#8203;10950](https://github.com/gohugoio/hugo/issues/10950) - Add Sections to Site interface [`faa6998`](https://github.com/gohugoio/hugo/commit/faa6998f) [@&#8203;bep](https://github.com/bep) [#&#8203;10947](https://github.com/gohugoio/hugo/issues/10947) - helpers: simplify path tests with T.TempDir [`3d90871`](https://github.com/gohugoio/hugo/commit/3d90871e) [@&#8203;alexandear](https://github.com/alexandear) - tpl: Add math.Abs [`bda082c`](https://github.com/gohugoio/hugo/commit/bda082c9) [@&#8203;alexandear](https://github.com/alexandear) [#&#8203;10941](https://github.com/gohugoio/hugo/issues/10941) - Create a struct with all of Hugo's config options [`241b21b`](https://github.com/gohugoio/hugo/commit/241b21b0) [@&#8203;bep](https://github.com/bep) [#&#8203;10896](https://github.com/gohugoio/hugo/issues/10896) [#&#8203;10620](https://github.com/gohugoio/hugo/issues/10620) - Improve date parsing performance for the common case [`6aededf`](https://github.com/gohugoio/hugo/commit/6aededf6) [@&#8203;bep](https://github.com/bep) [#&#8203;10942](https://github.com/gohugoio/hugo/issues/10942) - Add a counter helper [`0988b76`](https://github.com/gohugoio/hugo/commit/0988b76a) [@&#8203;bep](https://github.com/bep) - Expand the baseline benchmark a little [`e0e19a9`](https://github.com/gohugoio/hugo/commit/e0e19a93) [@&#8203;bep](https://github.com/bep) - Revert "Update syntax-highlighting.md ([#&#8203;10929](https://github.com/gohugoio/hugo/issues/10929))" ([#&#8203;10930](https://github.com/gohugoio/hugo/issues/10930)) [`bcd7ac7`](https://github.com/gohugoio/hugo/commit/bcd7ac77) [@&#8203;jmooring](https://github.com/jmooring) - Update syntax-highlighting.md ([#&#8203;10929](https://github.com/gohugoio/hugo/issues/10929)) [`a4fb8dc`](https://github.com/gohugoio/hugo/commit/a4fb8dc6) [@&#8203;kirillbobyrev](https://github.com/kirillbobyrev) - tpl/strings: Clarify findRESubmatch description [`5c7b79c`](https://github.com/gohugoio/hugo/commit/5c7b79cf) [@&#8203;jmooring](https://github.com/jmooring) - langs/i18n: Fallback to defaultContentLanguage instead of English [`0cb6ca5`](https://github.com/gohugoio/hugo/commit/0cb6ca59) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9216](https://github.com/gohugoio/hugo/issues/9216) - tpl/debug: Add VisualizeSpaces [`f106251`](https://github.com/gohugoio/hugo/commit/f1062519) [@&#8203;bep](https://github.com/bep) - Prevent the global error collector to panic when sending on closed channel [`9906c1a`](https://github.com/gohugoio/hugo/commit/9906c1ae) [@&#8203;bep](https://github.com/bep) - markup/goldmark: Add config options for the typographer extension [`5596dc2`](https://github.com/gohugoio/hugo/commit/5596dc24) [@&#8203;bep](https://github.com/bep) [#&#8203;9772](https://github.com/gohugoio/hugo/issues/9772) - Add test for ToC vs include [`5748133`](https://github.com/gohugoio/hugo/commit/5748133d) [@&#8203;bep](https://github.com/bep) [#&#8203;10866](https://github.com/gohugoio/hugo/issues/10866) - resources.functions: improve validation [`05c095a`](https://github.com/gohugoio/hugo/commit/05c095a0) [@&#8203;deining](https://github.com/deining) - markup/goldmark: Fail on invalid Markdown attributes [`b0b1b76`](https://github.com/gohugoio/hugo/commit/b0b1b76d) [@&#8203;bep](https://github.com/bep) - tpl/math: Return error if less than 2 input numbers [`f5eddf8`](https://github.com/gohugoio/hugo/commit/f5eddf89) [@&#8203;septs](https://github.com/septs) [#&#8203;10827](https://github.com/gohugoio/hugo/issues/10827) ##### Dependency Updates - Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.29.0" [`f014921`](https://github.com/gohugoio/hugo/commit/f0149211) [@&#8203;bep](https://github.com/bep) [#&#8203;10993](https://github.com/gohugoio/hugo/issues/10993) - build(deps): bump github.com/tdewolff/parse/v2 from 2.6.5 to 2.6.6 [`1292d5a`](https://github.com/gohugoio/hugo/commit/1292d5a2) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump gocloud.dev from 0.24.0 to 0.29.0 [`baa5569`](https://github.com/gohugoio/hugo/commit/baa55690) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/gobuffalo/flect from 0.3.0 to 1.0.2 [`a5413c1`](https://github.com/gohugoio/hugo/commit/a5413c1f) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/image from 0.5.0 to 0.7.0 [`9cea58a`](https://github.com/gohugoio/hugo/commit/9cea58a8) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5 [`1a5dce4`](https://github.com/gohugoio/hugo/commit/1a5dce4c) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1 [`065ae00`](https://github.com/gohugoio/hugo/commit/065ae003) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump google.golang.org/api from 0.76.0 to 0.123.0 [`1a7d57c`](https://github.com/gohugoio/hugo/commit/1a7d57c0) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump golang.org/x/tools from 0.4.0 to 0.9.1 [`bba54e6`](https://github.com/gohugoio/hugo/commit/bba54e69) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/cli/safeexec from 1.0.0 to 1.0.1 [`7370543`](https://github.com/gohugoio/hugo/commit/73705431) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/getkin/kin-openapi from 0.110.0 to 0.117.0 [`f6269ee`](https://github.com/gohugoio/hugo/commit/f6269ee9) [@&#8203;dependabot](https://github.com/dependabot)\[bot] - deps: Update github.com/evanw/esbuild v0.17.0 => v0.17.19 [`715d484`](https://github.com/gohugoio/hugo/commit/715d4840) [@&#8203;bep](https://github.com/bep) - deps: Update github.com/alecthomas/chroma/v2 v2.7.0 [`c371171`](https://github.com/gohugoio/hugo/commit/c371171a) [@&#8203;bep](https://github.com/bep) - deps: Update github.com/bep/golibsass v1.1.0 => v1.1.1 [`24e7d0c`](https://github.com/gohugoio/hugo/commit/24e7d0c1) [@&#8203;bep](https://github.com/bep) [#&#8203;10629](https://github.com/gohugoio/hugo/issues/10629) [#&#8203;10491](https://github.com/gohugoio/hugo/issues/10491) ##### Documentation - docs: Regen docshelper [`b6e6438`](https://github.com/gohugoio/hugo/commit/b6e6438f) [@&#8203;bep](https://github.com/bep) - commands: Add missing gen docshelper command [`943ff7f`](https://github.com/gohugoio/hugo/commit/943ff7f7) [@&#8203;bep](https://github.com/bep) [#&#8203;10953](https://github.com/gohugoio/hugo/issues/10953) - docs: Regen CLI docs [`10d0fcc`](https://github.com/gohugoio/hugo/commit/10d0fcc0) [@&#8203;bep](https://github.com/bep) - tpl/lang: document delimiter option for FormatNumberCustom [`1155bbc`](https://github.com/gohugoio/hugo/commit/1155bbca) [@&#8203;jmooring](https://github.com/jmooring) - Update README.md [`4f341fa`](https://github.com/gohugoio/hugo/commit/4f341fa1) [@&#8203;bep](https://github.com/bep) - Update README.md [`46a3cf6`](https://github.com/gohugoio/hugo/commit/46a3cf61) [@&#8203;bep](https://github.com/bep) - Update README.md [`f1e8f01`](https://github.com/gohugoio/hugo/commit/f1e8f010) [@&#8203;bep](https://github.com/bep) </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 [Renovate Bot](https://github.com/renovatebot/renovate). The local configuration can be found in the [SI Renovate Bot repository](https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/src/branch/main/apps/k8s01/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjUwLjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
chore(deps): update dependency gohugoio/hugo to v0.165.0
Some checks failed
gitops-images Image build started
gitops-pr-validation Pipeline failed
b727af2705
botaniker force-pushed renovate/gohugoio-hugo-0.x from b727af2705
Some checks failed
gitops-images Image build started
gitops-pr-validation Pipeline failed
to 66a39794be
All checks were successful
gitops-pr-validation Pipeline completed successfully
gitops-images Pipeline completed successfully
2026-08-30 06:05:58 +00:00
Compare
botaniker force-pushed renovate/gohugoio-hugo-0.x from 66a39794be
All checks were successful
gitops-pr-validation Pipeline completed successfully
gitops-images Pipeline completed successfully
to d8c0a83c6a
Some checks failed
gitops-images Image build started
gitops-pr-validation Pipeline failed
2026-09-02 06:09:21 +00:00
Compare
Some checks failed
gitops-images Image build started
Required
Details
gitops-pr-validation Pipeline failed
Required
Details
Some required checks were not successful.
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/gohugoio-hugo-0.x:renovate/gohugoio-hugo-0.x
git switch renovate/gohugoio-hugo-0.x
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
shivering-isles/infrastructure-gitops!169
No description provided.