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 update!
v0.81.0 Release Notes
Hugo 0.81.0 is the first release in this decade, it is the fastest to date, and it's packed with useful new features.
Newlines in Template Actions and Commands
You can now have newlines within template actions and pipelines. This means that you can now do this and similar:
Note that the above construction will fail in Hugo versions <
0.81.0
.Attribute Lists after Markdown Blocks
Hugo already supports adding attribute lists (e.g CSS classes) after titles. We now also allow adding attribute lists after Markdown blocks, e.g. tables, lists, paragraphs etc.:
See Configure Goldmark.
Performance
This release is the fastest Hugo to date, see details in the benchmarks below. This is especially true if you use the new ARM64 MacOS binary (only works on Apple M1 devices).
Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0
Native Arm Binary for Apple M1
We finally provide native Hugo binary for Apple M1 devices. Download the file named
hugo_0.81.0_macOS-ARM64.tar.gz
.JavaScript Building
inject
config option allowing you to automatically replace a global variable with an import from another file relative toassets
. 32b86076 @bep #8164shims
config option to swap out a component with another. A common use case is to load dependencies like React from a CDN (with shims) when in production, but running with the full bundlednode_modules
dependency during development e19a046c @bep #8165Also see js.Build Options.
Hugo Modules
There are several Hugo Modules-related improvements in this release:
Statistics
This release represents 59 contributions by 14 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason and @benmezger 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 20 contributions by 13 contributors. A special thanks to @bep, @gagarine, @fridde, and @NicoHood for their work on the documentation site.
Hugo now has:
Notes
hugo gen autocomplete
now default tostdout
; you can change this by setting--completionfile
. As an added bonus we now also support auto completion for zsh, fish and powershell.Changelog