Release Hugo 0.86.0

This commit is contained in:
Bjørn Erik Pedersen committed 2021-07-21 13:48:25 +02:00
1 parent 2dd60bb71a
commit 5f5d7f69d6
236 files changed
+19 -9

No files matched your search

+6
View File
@@ -17,6 +17,12 @@ pluralizeListTitles = false
# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below). # We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
disableAliases = true disableAliases = true
[minify]
[minify.tdewolff]
[minify.tdewolff.css]
[minify.tdewolff.html]
keepWhitespace = true
[module] [module]
[module.hugoVersion] [module.hugoVersion]
min = "0.56.0" min = "0.56.0"
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

+3 -3
View File
@@ -1,8 +1,8 @@
--- ---
date: 2021-07-21 date: 2021-07-21
title: "0.86.0" title: "Hugo 0.86.0: Cascade in Config"
description: "0.86.0" description: "Hugo 0.86.0 adds cascade keyword to site config, much improved \"active menu item\" logic for section pages, and more."
categories: ["Releases"] categories: ["Releases"]
--- ---
@@ -10,7 +10,7 @@ categories: ["Releases"]
You can now have a top level [cascade](https://gohugo.io/content-management/front-matter#front-matter-cascade) (or one per language, if needed) section in your site configuration (e.g. `config.toml`). This way you can control default front matter values from outside of the content files. You can now have a top level [cascade](https://gohugo.io/content-management/front-matter#front-matter-cascade) (or one per language, if needed) section in your site configuration (e.g. `config.toml`). This way you can control default front matter values from outside of the content files.
Hugo's [Menu system](https://gohugo.io/content-management/menus/) works good, but hasn't been particulary easy to set the active menu state for section pages without a menu defintion. We have had the option [Section Menu for Lazy Bloggers](https://gohugo.io/templates/menu-templates/#section-menu-for-lazy-bloggers). That helped for the common case, but we have now made it behave more sensible out of the box: `$section.HasMenuCurrent` will now always return true for any descendant of that section. To support this for menu defintions in the site config, we have added a new `pageRef` option on [MenuEntry](https://gohugo.io/variables/menus/#menu-entry-variables): Hugo's [Menu system](https://gohugo.io/content-management/menus/) works good, but hasn't been particulary easy to set the active menu state for section pages without a menu defintion. We have had the option [Section Menu for Lazy Bloggers](https://gohugo.io/templates/menu-templates/#section-menu-for-lazy-bloggers). That helped for the common case, but we have now made it behave more sensible out of the box: `$page.HasMenuCurrent $sectionMenuEntry` will now always return true for any descendant of that section. To support this for menu defintions in the site config, we have added a new `pageRef` option on [MenuEntry](https://gohugo.io/variables/menus/#menu-entry-variables):
```toml ```toml
[[menus.main]] [[menus.main]]
+6 -2
View File
@@ -1677,6 +1677,9 @@
"caches": { "caches": {
"_merge": "none" "_merge": "none"
}, },
"cascade": {
"_merge": "none"
},
"frontmatter": { "frontmatter": {
"_merge": "none" "_merge": "none"
}, },
@@ -1745,7 +1748,7 @@
"keepDocumentTags": true, "keepDocumentTags": true,
"keepEndTags": true, "keepEndTags": true,
"keepQuotes": false, "keepQuotes": false,
"keepWhitespace": false "keepWhitespace": true
}, },
"css": { "css": {
"keepCSS2": true, "keepCSS2": true,
@@ -1756,7 +1759,8 @@
"keepVarNames": false "keepVarNames": false
}, },
"json": { "json": {
"precision": 0 "precision": 0,
"keepNumbers": false
}, },
"svg": { "svg": {
"precision": 0 "precision": 0
+4 -4
View File
@@ -3,7 +3,7 @@ publish = "public"
command = "hugo --gc --minify" command = "hugo --gc --minify"
[context.production.environment] [context.production.environment]
HUGO_VERSION = "0.85.0" HUGO_VERSION = "0.86.0"
HUGO_ENV = "production" HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
@@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
command = "hugo --gc --minify --enableGitInfo" command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment] [context.split1.environment]
HUGO_VERSION = "0.85.0" HUGO_VERSION = "0.86.0"
HUGO_ENV = "production" HUGO_ENV = "production"
[context.deploy-preview] [context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment] [context.deploy-preview.environment]
HUGO_VERSION = "0.85.0" HUGO_VERSION = "0.86.0"
[context.branch-deploy] [context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment] [context.branch-deploy.environment]
HUGO_VERSION = "0.85.0" HUGO_VERSION = "0.86.0"
[context.next.environment] [context.next.environment]
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Loaded 100 of 236 files, more files were not shown because too many files have changed in this diff. Show more