diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-07 18:41:10 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-08 16:08:46 +0200 |
commit | 92e86702eab5d68cd4eda87069fba906139f5c08 (patch) | |
tree | 6edb31f509cb321b3ab9d038bfd6d50ea07f6fac /commands | |
parent | 6c9ea022a9022a281031eed75ceb00c4c03f2b5a (diff) |
Fix defaultContentLanguageInSubdir with only 1 language
Fixes #10064
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugobuilder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go index b5cd0c2bb..d2b43cc77 100644 --- a/commands/hugobuilder.go +++ b/commands/hugobuilder.go @@ -1042,8 +1042,8 @@ func (c *hugoBuilder) rebuildSites(events []fsnotify.Event) error { if c.fastRenderMode { c.withConf(func(conf *commonConfig) { // Make sure we always render the home pages - for _, l := range conf.configs.Languages { - langPath := h.GetLangSubDir(l.Lang) + for _, l := range conf.configs.ConfigLangs() { + langPath := l.LanguagePrefix() if langPath != "" { langPath = langPath + "/" } |