diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-02-23 17:41:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-02-23 17:41:05 +0100 |
commit | e7e194435b4c566f47d644f2e60c096ea1866254 (patch) | |
tree | 36f477e598b5b6d176258406b3f6c4771cb212bb /docs/content/en/news | |
parent | 88a85dcea951b0b5622cf02b167ec9299d93118b (diff) | |
parent | 9d31f650da964a52f05fc27b7fb99cf3e09778cf (diff) |
Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'
Diffstat (limited to 'docs/content/en/news')
-rw-r--r-- | docs/content/en/news/0.81.0-relnotes/featured.jpg | bin | 0 -> 345282 bytes | |||
-rw-r--r-- | docs/content/en/news/0.81.0-relnotes/index.md | 29 |
2 files changed, 20 insertions, 9 deletions
diff --git a/docs/content/en/news/0.81.0-relnotes/featured.jpg b/docs/content/en/news/0.81.0-relnotes/featured.jpg Binary files differnew file mode 100644 index 000000000..e1488c5c2 --- /dev/null +++ b/docs/content/en/news/0.81.0-relnotes/featured.jpg diff --git a/docs/content/en/news/0.81.0-relnotes/index.md b/docs/content/en/news/0.81.0-relnotes/index.md index 0a023cc90..70ecab17d 100644 --- a/docs/content/en/news/0.81.0-relnotes/index.md +++ b/docs/content/en/news/0.81.0-relnotes/index.md @@ -1,19 +1,20 @@ --- date: 2021-02-19 -title: "0.81.0" -description: "0.81.0" +title: "Hugo 0.81.0: The Smorgasbord Edition" +description: "Attribute lists (e.g. CSS classes) for Markdown blocks, newlines in template actions/blocks, native Apple M1 ARM64 binary, it's faster, and more …" categories: ["Releases"] +toc: true --- - **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. +**Hugo 0.81.0** is the first release of 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: ```go-html-template -FIX dict +{{ dict "country" "Norway" "population" "5 millions" "language" "Norwegian" @@ -23,7 +24,7 @@ FIX dict "largest_city" "Oslo" "currency" "Norwegian krone" "dialing_code" "+47" -FIX +}} ``` Note that the above construction will fail in Hugo versions < `0.81.0`. @@ -40,13 +41,11 @@ Hugo already supports adding attribute lists (e.g CSS classes) after titles. We See [Configure Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark). - ## Performance This release is the fastest Hugo to date, see details in the benchmarks below. This is [especially true](https://gohugo.io/news/hugo-macos-intel-vs-arm/) if you use the new ARM64 MacOS binary (only works on [Apple M1](https://en.wikipedia.org/wiki/Apple_M1) devices). -<details> - <summary>Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 </summary> +### Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 ``` name old time/op new time/op delta @@ -103,7 +102,8 @@ SiteNew/Regular_Many_HTML_templates-16 129k ± 0% 129k ± 0% +0.35 SiteNew/Regular_Page_collections-16 199k ± 0% 200k ± 0% +0.55% (p=0.029 n=4+4) SiteNew/Regular_List_terms-16 53.5k ± 0% 53.4k ± 0% -0.18% (p=0.029 n=4+4) ``` -</details> + + ## Native Arm Binary for Apple M1 @@ -126,6 +126,16 @@ There are several [Hugo Modules](https://gohugo.io/hugo-modules/)-related improv * Add config option modules.vendorClosest [bdfbcf6f](https://github.com/gohugoio/hugo/commit/bdfbcf6f4b4ab53a617ab76f72e8aa28da6067de) [@bep](https://github.com/bep) [#8235](https://github.com/gohugoio/hugo/issues/8235)[#8242](https://github.com/gohugoio/hugo/issues/8242) * Throw an error running hugo mod vendor on mountless module [4ffaeaf1](https://github.com/gohugoio/hugo/commit/4ffaeaf15536596c94dc73b393ca7894e3bd5e2c) [@bep](https://github.com/bep) +## Minify - Keep Comments + +Keep comments when running `hugo --minify` with a new setting in config.toml. + +```toml +[minify.tdewolff.html] +keepComments = true +``` + +The default value for this setting is `false`. ## Statistics @@ -145,6 +155,7 @@ Hugo now has: ## Notes * We have updated to Beta 6 of the Dart Sass Protocol which is not backwards compatible, so if you use Dart Sass you need to also update [that binary](https://gohugo.io/hugo-pipes/scss-sass/#options). +* `hugo gen autocomplete` now default to `stdout`; you can change this by setting `--completionfile`. As an added bonus we now also support auto completion for zsh, fish and powershell. ## Changelog |