This is release is a set of smaller fixes and improvements. Some of the more noteable:
You can now have a top level 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 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. 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:
[[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 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,
which has received 1 contributions by 1 contributors.
Hugo now has:
- 53005+ stars
- 431+ contributors
- 370+ themes
Enhancements
Other
- Simplify "active menu" logic for section menus d831d2fc @bep #8776
- Make keepWhitespace = true default for HTML c19f65f9 @bep #8771
- Make FileMeta a struct 022c4795 @bep #8749
- Add tabindex="0" to default
wrapper f27e5424 @rhymes #7194
- Rename/reorder the hook methods 80566481 @bep #8755
- Support auto links in render hook ee3d2bb1 @bep #8755
- Adjust a test helper eb2a5003 @bep
- Add config.cascade 5cb52c23 @bep #8741
- Regenerate image golden testdata 30eea391 @bep #8729
Fixes
Other
- Fix panic on invalid config in "hugo mod get" and similar 351ed0f5 @bep #8773
- Fix Params case handling for menu items defined in site config 634481ba @bep #8775
- Fix default values when loading from config dir ae6cf93c @bep #8763
- Fix the deprecation error/warn log levels a70da2b7 @bep
- Fix transparency problem when converting 32-bit images to WebP 8f40f34c @bep #8729