diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-06-22 18:17:49 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-06-24 13:03:09 +0200 |
commit | 093dacab29a3c6fc363408453d0bc3b1fc159ad5 (patch) | |
tree | d0a36df930602483fe5bd6f325cb90c7a4efd71a /hugolib/config.go | |
parent | 4a9d408fe0bbf4c563546e35d2be7ade4e920c4c (diff) | |
download | hugo-093dacab29a3c6fc363408453d0bc3b1fc159ad5.tar.gz hugo-093dacab29a3c6fc363408453d0bc3b1fc159ad5.zip |
Fix language menu config regression
Fixes #8672
Diffstat (limited to 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index 90ac7eb01..a0ce98042 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -93,20 +93,6 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid } } - // TODO(bep) improve this. This is currently needed to get the merge correctly. - if l.cfg.IsSet("languages") { - langs := l.cfg.GetParams("languages") - for _, lang := range langs { - langp := lang.(maps.Params) - if _, ok := langp["menus"]; !ok { - langp["menus"] = make(maps.Params) - } - if _, ok := langp["params"]; !ok { - langp["params"] = make(maps.Params) - } - } - - } l.cfg.SetDefaultMergeStrategy() // We create languages based on the settings, so we need to make sure that |