diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-04-25 13:28:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-04-25 14:35:49 +0200 |
commit | babcb339a848842705c1418b2895ab31f7ddb735 (patch) | |
tree | 24d5922b26489954866d03875d8de0effd21963e /config/allconfig | |
parent | 7203a95a6069b09a7546e5b2e286abe6455df83a (diff) | |
download | hugo-babcb339a848842705c1418b2895ab31f7ddb735.tar.gz hugo-babcb339a848842705c1418b2895ab31f7ddb735.zip |
config: Setups with only one active language can never be multihost
Fixes #12288
Diffstat (limited to 'config/allconfig')
-rw-r--r-- | config/allconfig/configlanguage.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/allconfig/configlanguage.go b/config/allconfig/configlanguage.go index 900db75ce..c7f1c276a 100644 --- a/config/allconfig/configlanguage.go +++ b/config/allconfig/configlanguage.go @@ -71,6 +71,9 @@ func (c ConfigLanguage) Environment() string { } func (c ConfigLanguage) IsMultihost() bool { + if len(c.m.Languages)-len(c.config.C.DisabledLanguages) <= 1 { + return false + } return c.m.IsMultihost } |