chore(deps): update dependency gohugoio/hugo to v0.91.0 #28
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.90.1
->v0.91.0
Release Notes
gohugoio/hugo
v0.91.0
Compare Source
Hugo
0.91.0
is mostly on the boring and technical side. See the list of changes below, but especially note the fix that allows passing falsy arguments to partials with thereturn
keyword (5758c37
#7528), thanks to @ptgott.Notes
This release contains some changes that may break your build:
Use resources.GetRemote to fetch remote resources
In Hugo 0.90 we added remote support to
resources.Get
. In hindsight it was not a great idea use the same method for both, as a poll from many Hugo users showed. See Issue #9285 for more details. This release introducesresources.GetRemote
which you need to use for remote resources. The example we showed in the release notes for0.90.0
will now look like:If you want to fetch any resource not having to consider where it lives, you can use a construct similar to the below:
New Security Configuration
This release also adds some new security hardening measures for the Hugo build runtime in the form of a new
security
configuration. There are some rarely used features in Hugo that would be good to have disabled by default. One example would be the "external helpers".For
asciidoctor
and some others we use Go'sos/exec
package to start a new process. These are a predefined set of binary names, all loaded fromPATH
and with a predefined set of arguments. Still, if you don't useasciidoctor
in your project, you might as well have it turned off.You can configure this in the new
security
configuration section. The defaults are configured to create a minimal amount of site breakage, but if that do happen, you will get clear instructions in the console about what to do.The default configuration is listed below. Note that almost all of these options are regular expression whitelists (a string or a slice); the value
none
will block all.You can read more about it in Hugo's Security Model
Numbers
This release represents 23 contributions by 5 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, @ptgott, and @jansorg for their ongoing contributions.
And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 18 contributions by 2 contributors.
Hugo now has:
Changes
6df2f08
@bepb84745d
@bep4495449
@bep #9302 #930122ef5da
@bep #9285 #92965758c37
@ptgott #75288ee6de6
@bepa4b9f1a
@jansorgf4389e4
@bep803f572
@bepa037be7
@jmooring #92758a00553
@hitzhangjie #9261657d027
@jmooring159120c
@bep3f0d49e
@bep4890788
@bep3075eaa
@bep3bc6830
@bep #9271e4d6ec9
@bep #95296260455
@bep #9267c397975
@bep #9269965a6cb
@bep #9265Configuration
📅 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.