chore(deps): update dependency gohugoio/hugo to v0.154.0 #89

Merged
onlyhavecans merged 1 commit from renovate/gohugoio-hugo-0.x into main 2025-12-31 07:38:24 -08:00
Member

This PR contains the following updates:

Package Update Change
gohugoio/hugo minor v0.153.5v0.154.0

Release Notes

gohugoio/hugo (gohugoio/hugo)

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


Configuration

📅 Schedule: 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.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [gohugoio/hugo](https://github.com/gohugoio/hugo) | minor | `v0.153.5` → `v0.154.0` | --- ### Release Notes <details> <summary>gohugoio/hugo (gohugoio/hugo)</summary> ### [`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] </details> --- ### Configuration 📅 **Schedule**: 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). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42OC40IiwidXBkYXRlZEluVmVyIjoiNDIuNjguNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->
chore(deps): update dependency gohugoio/hugo to v0.154.0
All checks were successful
Build and deploy Hugo to Netlify / build-and-deploy (pull_request) Successful in 3m54s
25dc281689
## Netlify Deploy Results **site_id:** 2697be4d-8ffe-444a-b2d7-e7508684e728 **site_name:** goofy-pare-d8f823 **deploy_id:** 69553ca861dc4cf81ceacd20 **deploy_url:** https://pr-89--goofy-pare-d8f823.netlify.app **logs:** https://app.netlify.com/projects/goofy-pare-d8f823/deploys/69553ca861dc4cf81ceacd20 **function_logs:** https://app.netlify.com/projects/goofy-pare-d8f823/logs/functions?scope=deploy:69553ca861dc4cf81ceacd20 **edge_function_logs:** https://app.netlify.com/projects/goofy-pare-d8f823/logs/edge-functions?scope=deployid:69553ca861dc4cf81ceacd20
onlyhavecans deleted branch renovate/gohugoio-hugo-0.x 2025-12-31 07:38:24 -08:00
Sign in to join this conversation.
No description provided.