[hugo-updater] Update Hugo to version 0.95.0 #54
Merged
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.
[hugo-updater] Update Hugo to version 0.95.0
More details in https://github.com/gohugoio/hugo/releases/tag/v0.95.0
Even faster, continue and break support, short-circuit of the built-in and/or-operators. This release upgrades to Go 1.18 which was released yesterday. This has made Hugo even faster. How much faster will depend on your site etc., but we have benchmarks that show significant improvements. But the main reason we're exited about this is the improvements in Go templates:
There are two new keywords,
break
andcontinue
. These behaves like you would expect coming from other programming languages:Also, the two built-in operators/function
and
andor
now short-circuits, also in line with how&&
and||
behave in other programming languages. This is useful in situations where the right side may have side effects (may benil
, is slow to execute etc.):Hugo now has:
Notes
Changes