Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'

This commit is contained in:
Bjørn Erik Pedersen
2024-01-26 08:22:42 +01:00
141 changed files with 904 additions and 813 deletions

View File

@@ -14,17 +14,17 @@ The `Sort` method returns the given menu with its entries sorted by `name`.
Consider this menu definition:
{{< code-toggle file=hugo >}}
[[menu.main]]
[[menus.main]]
name = 'Services'
pageRef = '/services'
weight = 10
[[menu.main]]
[[menus.main]]
name = 'About'
pageRef = '/about'
weight = 20
[[menu.main]]
[[menus.main]]
name = 'Contact'
pageRef = '/contact'
weight = 30

View File

@@ -16,19 +16,19 @@ The `ByWeight` method returns the given menu with its entries sorted by [`weight
Consider this menu definition:
{{< code-toggle file=hugo >}}
[[menu.main]]
[[menus.main]]
identifier = 'about'
name = 'About'
pageRef = '/about'
weight = 20
[[menu.main]]
[[menus.main]]
identifier = 'services'
name = 'Services'
pageRef = '/services'
weight = 10
[[menu.main]]
[[menus.main]]
identifier = 'contact'
name = 'Contact'
pageRef = '/contact'

View File

@@ -14,17 +14,17 @@ The `Limit` method returns the given menu, limited to the first N entries.
Consider this menu definition:
{{< code-toggle file=hugo >}}
[[menu.main]]
[[menus.main]]
name = 'Services'
pageRef = '/services'
weight = 10
[[menu.main]]
[[menus.main]]
name = 'About'
pageRef = '/about'
weight = 20
[[menu.main]]
[[menus.main]]
name = 'Contact'
pageRef = '/contact'
weight = 30

View File

@@ -14,17 +14,17 @@ The `Reverse` method returns the given menu, reversing the sort order of its ent
Consider this menu definition:
{{< code-toggle file=hugo >}}
[[menu.main]]
[[menus.main]]
name = 'Services'
pageRef = '/services'
weight = 10
[[menu.main]]
[[menus.main]]
name = 'About'
pageRef = '/about'
weight = 20
[[menu.main]]
[[menus.main]]
name = 'Contact'
pageRef = '/contact'
weight = 30