Sourced from github.com/gohugoio/hugo's releases.
v0.154.2
What's Changed
- Fix alpha/fuzzy border issue with new webp decoder for images with with transparent background e9b9b36f
@bep#14339v0.154.1
What's Changed
- Add WASM licensing information to README 8f3527f6
@bep- Fix partial decorator detection in partial with blocks with outer range break or continue 09048aad
@bep#14333v0.154.0
Hugo
v0.154.0is 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
innerkeyword 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
... (truncated)
f66d094
releaser: Bump versions for release of 0.154.2e9b9b36
Fix alpha/fuzzy border issue with new webp decoder for images with with
trans...b8a2c10
snap: Limit build platforms to amd64, arm64, ppc64el, and s390x601df38
snap: Update to core 243bed212
releaser: Prepare repository for 0.155.0-DEVe2fd676
releaser: Bump versions for release of 0.154.18f3527f
Add WASM licensing information to README09048aa
Fix partial decorator detection in partial with blocks with outer range
break...f42c422
releaser: Prepare repository for 0.155.0-DEV0b71db2
releaser: Bump versions for release of 0.154.0