You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #12507, @jmooring requested support for menu entry creation in content adapters. The resulting implementation in 245928a supports defining flat menu entries:
To fix this, Menu []string needs to be changed to Menu any; that's what the menu decoder gets from front matter (and then it checks if it's a slice of strings or a map).
Requesting support to create menu entries with properties using a content adapter, per feedback in my forum post.
In #12507, @jmooring requested support for menu entry creation in content adapters. The resulting implementation in 245928a supports defining flat menu entries:
menus: main
{{ .AddPage (dict "menus" "main" [...]) }}
menus: [main, footer]
{{ .AddPage (dict "menus" (slice "main" "footer") [...]) }}
However, it's not possible to create menu entries with properties within a content adapter, equivalent to defining the following in front matter:
I expected that passing a map would work:
But it seems menus are defined as an array of strings. Maybe it should be a map, like
Params
?Thank you!
The text was updated successfully, but these errors were encountered: