Sourced from github.com/gohugoio/hugo's releases.
v0.153.1
[!note] This is a bug fix release. See the main release for a list of new features.
- Handle PNG named *.webp 4085ee93
@bep#14288- Revert deprecation logging for contentDir per language 168bf17e
@bep#14287- Fix panic when 404 is backed by a content file f740d7cf
@bep#14283- internal/warpc: Increase WebP memory limit to 256 MiB 5f46da6e
@jmooring#14282v0.153.0
[!note] There is a newer bug fix release available here.
This is a good one! Hugo
v0.153.0comes 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,
complementsallows 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
pkginstallers.Also:
- The Asciidoctor integration is greatly improved.
- New template funcs urls.PathUnescape and urls.PathEscape.
- openapi3.Unmarshal now support external refs (including remote refs).
Notes
- tpl/css: Deprecate libsass in favor of dartsass (note) 9937a5dc
@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.Sitesto 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.matrixoption.- File mount
includeFilesandexcludeFilesare 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 b82e496c
@bep#14271- Fix server rebuilds on editing content with Chinese terms e2e64aee
@bep#14240- Fix slow server startup of very big content trees 7a43b928
@bep#14211- github: Fix "no space left on device" issue in CI b037b930
@bep- docs: Fix link to CGO wiki page 5af31128
@jordelver
... (truncated)
8e6cac8
releaser: Bump versions for release of 0.153.14085ee9
Handle PNG named *.webp168bf17
Revert deprecation logging for contentDir per language80ea90c
images: Add some more PNG testsf740d7c
Fix panic when 404 is backed by a content file5f46da6
internal/warpc: Increase WebP memory limit to 256 MiBfe64a68
releaser: Prepare repository for 0.154.0-DEVb4128ba
releaser: Bump versions for release of 0.153.0790a5b7
hugoreleaser: Updage macospkgremote to increase notarization
timeout70ce244
Merge commit '08e1ea5c709d3d49bdc3ce3c21e8fa05a33150d0'