summaryrefslogtreecommitdiffhomepage
path: root/temp
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-07-21 11:28:32 +0200
committerGitHub <[email protected]>2021-07-21 11:28:32 +0200
commite521c9a36d89dfc2f4117af4bca5c2a0731eed61 (patch)
tree6706f879461c89de4b034aee486e43c85049b8d1 /temp
parentdfb1cc43150fb0c085b1639e4e04f160605b972d (diff)
downloadhugo-e521c9a36d89dfc2f4117af4bca5c2a0731eed61.tar.gz
hugo-e521c9a36d89dfc2f4117af4bca5c2a0731eed61.zip
Update 0.86.0-relnotes.md
[ci skip]
Diffstat (limited to 'temp')
-rw-r--r--temp/0.86.0-relnotes.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/temp/0.86.0-relnotes.md b/temp/0.86.0-relnotes.md
index 839024319..e9597f8d8 100644
--- a/temp/0.86.0-relnotes.md
+++ b/temp/0.86.0-relnotes.md
@@ -1,3 +1,18 @@
+This is release is a set of smaller fixes and improvements. Some of the more noteable:
+
+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):
+
+```toml
+[[menus.main]]
+pageRef = "blog"
+# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
+url = "/blog"
+```
+
+Set `pageRef` to a value that [site.GetPage](https://gohugo.io/functions/getpage/) understands, and the menu entry will be correctly connected to the page.
+
This release represents **14 contributions by 2 contributors** to the main Hugo code base.
Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs),
which has received **1 contributions by 1 contributors**.