diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 09:37:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 19:42:55 +0100 |
commit | 4174a7866b75c6ae10827cc77dbae0676af8e5eb (patch) | |
tree | 90554344f1749dcdbcfe4587815643c35723b1c2 /config | |
parent | 5dd06b4136aead1d4c8ef835f0670c32ae321152 (diff) | |
download | hugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.tar.gz hugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.zip |
Fix disabled languages regression
Fixes #11959
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index 742a28150..413baebd1 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -733,7 +733,8 @@ func (c *Configs) Init() error { c.Languages = languages c.LanguagesDefaultFirst = languagesDefaultFirst - c.ContentPathParser = paths.PathParser{LanguageIndex: languagesDefaultFirst.AsIndexSet()} + + c.ContentPathParser = paths.PathParser{LanguageIndex: languagesDefaultFirst.AsIndexSet(), IsLangDisabled: c.Base.IsLangDisabled} c.configLangs = make([]config.AllProvider, len(c.Languages)) for i, l := range c.LanguagesDefaultFirst { |