Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Releases: gohugoio/hugo

v0.155.3

08 Feb 17:06
@bep bep

Choose a tag to compare

What's Changed

  • hugolib: Don't render default site redirect for non-primary isHTML output formats 6ac7d08 @bep #14482
  • server: Fix stuck server global error logging 24eb84f @bep #14469
  • build(deps): bump github.com/evanw/esbuild from 0.27.2 to 0.27.3 95a3678 @dependabot[bot]
  • server: Fix panic when the server browser error handler tried to use a config in a state of flux 9045797 @bep #14470

v0.155.2

02 Feb 10:41
@bep bep

Choose a tag to compare

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

30 Jan 10:36
@bep bep

Choose a tag to compare

What's Changed

v0.155.0

28 Jan 17:29
@bep bep

Choose a tag to compare

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

  • Make Page.Aliases more useful in multidimensional setups (note) ee91c70 @bep #14402

Bug fixes

Improvements

Dependency Updates

Build Setup

Documentation

v0.154.5

11 Jan 21:18
@bep bep

Choose a tag to compare

What's Changed

v0.154.4

10 Jan 16:30
@bep bep

Choose a tag to compare

What's Changed

Also see the new Page.OutputFormats.Canonical method.

v0.154.3

06 Jan 17:16
@bep bep

Choose a tag to compare

What's Changed

  • build(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16 866b8e5 @dependabot[bot]

v0.154.2

02 Jan 16:52
@bep bep

Choose a tag to compare

What's Changed

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

v0.154.1

01 Jan 17:53
@bep bep

Choose a tag to compare

What's Changed

  • Add WASM licensing information to README 8f3527f @bep
  • Fix partial decorator detection in partial with blocks with outer range break or continue 09048aa @bep #14333

v0.154.0

31 Dec 14:25
@bep bep

Choose a tag to compare

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

  • build(deps): bump github.com/tetratelabs/wazero from 1.10.1 to 1.11.0 2637aa1 @dependabot[bot]