menu: make footer area configurable

This commit is contained in:
Sören Weber 2025-03-15 21:45:27 +01:00
parent 566c17d000
commit b89d1e3fb6
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
33 changed files with 597 additions and 385 deletions
docs/content/introduction/releasenotes/7

View file

@ -10,9 +10,17 @@ weight = -6
### New
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The free menu configuration for the main menu area, [introduced in 7.1.0](introduction/releasenotes/7/1), is extended to the non-scolling menu header area between search box and main scrolling area using the `sidebarheadermenus` option.
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The menu configuration for the main menu area, [introduced in 7.1.0](introduction/releasenotes/7/1), is extended to the non-scrolling menu header area between search box and main scrolling area using the `sidebarheadermenus` option and to the menu footer area using the `sidebarfootermenus` option.
The [configuration for all sidebar menus](/configuration/sidebar/menus#defining-sidebar-menus) is similar.
The [configuration for all sidebar menus](/configuration/sidebar/menus#defining-sidebar-menus) is similar and now comes with two new types of menus.
The `divider` type adds a horizontal ruler.
The `custom` type allows to insert any HTML snippets into the menu. The HTML must be wrapped in a `li` element to not break HTML validation. The theme ships with the following snippets:
- `languageswitcher`: will display the language switcher
- `variantswitcher`: will display the variant switcher
- `historyclearer`: will display a button to clear the history of visited links
You dont need to change anything in your existing installation as the old configuration is used as a default.