aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-03-12 08:18:23 -0700
committerBjørn Erik Pedersen <[email protected]>2024-03-13 17:34:42 +0200
commitdc6a292133bf3249f1741a7624075b0782b16f84 (patch)
treeee11263c7a02b7f68e33185851511c08bb14c843 /modules
parent4f92f949eaf8c9827a758b3caadc672e0335480b (diff)
downloadhugo-dc6a292133bf3249f1741a7624075b0782b16f84.tar.gz
hugo-dc6a292133bf3249f1741a7624075b0782b16f84.zip
common/hugo: Rename IsMultiHost and IsMultiLingual
hugo.IsMultiHost => hugo.IsMultihost hugo.IsMultiLingual => hugo.IsMultilingual Closes #12232
Diffstat (limited to 'modules')
-rw-r--r--modules/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/config.go b/modules/config.go
index 62671613c..abb938ac0 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -86,7 +86,7 @@ func ApplyProjectConfigDefaults(mod Module, cfgs ...config.AllProvider) error {
first := cfgs[0]
dirsBase := first.DirsBase()
- isMultiHost := first.IsMultihost()
+ isMultihost := first.IsMultihost()
for i, cfg := range cfgs {
dirs := cfg.Dirs()
@@ -113,7 +113,7 @@ func ApplyProjectConfigDefaults(mod Module, cfgs ...config.AllProvider) error {
dir = dirs.AssetDir
case files.ComponentFolderStatic:
// For static dirs, we only care about the language in multihost setups.
- dropLang = !isMultiHost
+ dropLang = !isMultihost
}
var perLang bool