summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-06-22 18:17:49 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-06-24 13:03:09 +0200
commit093dacab29a3c6fc363408453d0bc3b1fc159ad5 (patch)
treed0a36df930602483fe5bd6f325cb90c7a4efd71a /hugolib/config.go
parent4a9d408fe0bbf4c563546e35d2be7ade4e920c4c (diff)
Fix language menu config regression
Fixes #8672
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go14
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