aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-01 09:37:05 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-01 19:42:55 +0100
commit4174a7866b75c6ae10827cc77dbae0676af8e5eb (patch)
tree90554344f1749dcdbcfe4587815643c35723b1c2 /config
parent5dd06b4136aead1d4c8ef835f0670c32ae321152 (diff)
downloadhugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.tar.gz
hugo-4174a7866b75c6ae10827cc77dbae0676af8e5eb.zip
Fix disabled languages regression
Fixes #11959
Diffstat (limited to 'config')
-rw-r--r--config/allconfig/allconfig.go3
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 {