commands: Add --lang to hugo config

Fixes #11057
This commit is contained in:
Bjørn Erik Pedersen
2023-06-01 09:53:40 +02:00
parent e3ae8f025d
commit 0ef2952846
4 changed files with 21 additions and 5 deletions

View File

@@ -664,6 +664,11 @@ func (c *Configs) Init() error {
}
}
// Transfer the changed mounts to the language versions (all share the same mount set, but can be displayed in different languages).
for _, l := range c.LanguageConfigSlice {
l.Module.Mounts = c.Base.Module.Mounts
}
return nil
}