Skip to content

v0.153.0

Choose a tag to compare

@bep bep released this 19 Dec 11:46

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(deps): bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1 39649dc @dependabot[bot]
  • build(deps): bump github.com/alecthomas/chroma/v2 from 2.21.0 to 2.21.1 614fb16 @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront 33542d3 @dependabot[bot]
  • deps: Upgrade github.com/alecthomas/chroma/v2 v2.20.0 => v2.21.0 588d20b @bep #14266
  • build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.1 to 1.41.0 b337302 @dependabot[bot]
  • build(deps): bump github.com/evanw/esbuild from 0.27.1 to 0.27.2 e6a3f1d @dependabot[bot]
  • build(deps): bump golang.org/x/image from 0.33.0 to 0.34.0 364d237 @dependabot[bot]
  • build(deps): bump golang.org/x/tools from 0.39.0 to 0.40.0 079f3eb @dependabot[bot]
  • build(deps): bump github.com/tdewolff/minify/v2 from 2.24.7 to 2.24.8 4e6f2b6 @dependabot[bot]
  • build(deps): bump gocloud.dev from 0.43.0 to 0.44.0 dff5e16 @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront c82a035 @dependabot[bot]
  • build(deps): bump github.com/evanw/esbuild from 0.27.0 to 0.27.1 86b01ed @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.0 to 1.40.1 9e7182e @dependabot[bot]
  • build(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.2 cf3ad62 @dependabot[bot]
  • build(deps): bump github.com/goccy/go-yaml from 1.18.0 to 1.19.0 bf42138 @dependabot[bot]
  • build(deps): bump github.com/olekukonko/tablewriter from 1.1.1 to 1.1.2 57fecb6 @dependabot[bot]
  • build(deps): bump github.com/JohannesKaufmann/html-to-markdown/v2 6d0ab6a @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront 0de8f86 @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront 2b337cd @dependabot[bot]
  • build(deps): bump golang.org/x/image from 0.32.0 to 0.33.0 cc61d00 @dependabot[bot]
  • build(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0 8ef2c61 @dependabot[bot]
  • build(deps): bump github.com/tdewolff/minify/v2 from 2.24.5 to 2.24.7 b916880 @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront 2680467 @dependabot[bot]
  • build(deps): bump golang.org/x/tools from 0.38.0 to 0.39.0 8ce80f7 @dependabot[bot]
  • build(deps): bump github.com/tetratelabs/wazero from 1.10.0 to 1.10.1 4baa95b @dependabot[bot]
  • build(deps): bump github.com/bits-and-blooms/bitset b81861f @dependabot[bot]
  • build(deps): bump github.com/olekukonko/tablewriter from 1.1.0 to 1.1.1 15cce89 @dependabot[bot]
  • build(deps): bump golang.org/x/text from 0.30.0 to 0.31.0 187e683 @dependabot[bot]
  • build(deps): bump github.com/evanw/esbuild from 0.25.12 to 0.27.0 432078a @dependabot[bot]
  • build(deps): bump google.golang.org/api from 0.251.0 to 0.255.0 38608c7 @dependabot[bot]
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront d75f0dc @dependabot[bot]
  • build(deps): bump github.com/tetratelabs/wazero from 1.9.0 to 1.10.0 579362e @dependabot[bot]
  • build(deps): bump github.com/evanw/esbuild from 0.25.11 to 0.25.12 0e8f88f @dependabot[bot]

Build Setup

  • release: Skip pushing stable and docs update for pre-releases c1cc65f @bep
  • release: Support alpha, beta, and RC releases 6630759 @bep
  • snap: Address snapcraft deprecations 596517a @jmooring

Documentation