chore(deps): update dependency gohugoio/hugo to v0.84.0 #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/gohugoio-hugo-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v0.83.1
->v0.84.0
Release Notes
gohugoio/hugo
v0.84.0
Compare Source
This release brings several configuration fixes and improvements that will be especially useful for themes.
Deep merge of theme Params
One of the most common complaint from Hugo theme owners/users has been about the configuration handling. Hugo has up until now only performed a shallow merge of theme
params
into the configuration.With that, given this example from a theme configuration:
If you would like to use the above theme, but want a different shade of red, you earlier had to copy the entire block, even the colours you're totally happy with. This was painful even the simplest setup.
Now you can just override the
params
keys you want to change, e.g.:For more information, and especially about the way you can opt out of the above behaviour, see Merge Configuration from Themes.
Themes now support the config directory
Now both the project and themes/modules can store its configuration in both the top level config file (e.g.
config.toml
) or in theconfig
directory. See Configuration Directory.HTTP headers in getJSON/getCSV
getJSON
now supports custom HTTP headers. This has been a big limitation in Hugo, especially considering the Authorization header.We have updated the internal Instagram shortcode to pass the access token in a header:
Also see the discussion this issue about the access token above.
New erroridf template func
Sometime, especially when creating themes, it is useful to be able to let the user decide if an error situation is critical enough to fail the build. The new
erroridf
producesERROR
log statements that can be toggled off:Will log:
Stats
This release represents 46 contributions by 11 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @jmooring, @satotake, and @Seirdy for their ongoing contributions.
And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 20 contributions by 10 contributors. A special thanks to @salim-b, @bep, @thomasjsn, and @lucasew for their work on the documentation site.
Hugo now has:
Notes
params
from theme config(s). That is you most likely what you want, but Merge Configuration from Themes describes how you can get the old behaviour back.Enhancements
Templates
Output
Other
Fixes
Templates
Other
Configuration
📅 Schedule: 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.
This PR has been generated by Renovate Bot.