aboutsummaryrefslogtreecommitdiffhomepage
path: root/navigation
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-07-20 11:32:50 +0200
committerBjørn Erik Pedersen <[email protected]>2021-07-20 17:50:59 +0200
commit634481ba8cfcd865ba0d8811d8834f6af45663d7 (patch)
treeb766189899b9260ca124e7f0e91edaf8774574fa /navigation
parentc19f65f956739ab76c38222d48a3e461525e31af (diff)
downloadhugo-634481ba8cfcd865ba0d8811d8834f6af45663d7.tar.gz
hugo-634481ba8cfcd865ba0d8811d8834f6af45663d7.zip
Fix Params case handling for menu items defined in site config
Fixes #8775
Diffstat (limited to 'navigation')
-rw-r--r--navigation/menu.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/navigation/menu.go b/navigation/menu.go
index 159c49710..3ef06f6a9 100644
--- a/navigation/menu.go
+++ b/navigation/menu.go
@@ -131,7 +131,8 @@ func (m *MenuEntry) MarshallMap(ime map[string]interface{}) {
case "parent":
m.Parent = cast.ToString(v)
case "params":
- m.Params = maps.ToStringMap(v)
+ m.Params = maps.MustToParamsAndPrepare(v)
+
}
}
}