This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updating package hugo to release v0.76.0.
Release info
In Hugo 0.76.0 you can now have a list of cascade blocks per page and a new
_target
keyword where you can select which pages to cascade upon using Glob patterns for aPage
'sKind
,Lang
and/orPath
:Tasks that were earlier hard/borderline impossible to do are now simple. One common example would to apply a different template set to nested sections; you can now apply a custom
Type
to these sections usingpath="/blog/*/**"
and similar.A related improvement is that the build option
render
is now an enum. In addition to turning on/off rendering of a given page you can tell Hugo to not render, but you want to preserve the.Permalink
, useful for SPA applications.This release represents 35 contributions by 8 contributors to the main Hugo code base.@dependabot[bot] leads the Hugo development with a significant amount of contributions, but also a big shoutout to @bep, @ai, and @jmooring for their ongoing contributions.
And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition and to @davidsneighbour, @coliff and @kaushalmodi for all the great work on the documentation site.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 11 contributions by 6 contributors. A special thanks to @amdw, @davidsneighbour, @samrobbins85, and @yaythomas for their work on the documentation site.
Hugo now has:
Notes
We have added a
force
flag to the server redirects configuration, configuring whether to override any existing content in the path or not. This is inline with how Netlify does it.This is set to default
false
. If you want the old behaviour you need to add this flag to your configuration:Enhancements
Templates
Other
Fixes
Templates
Other