summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-07 18:41:10 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-08 16:08:46 +0200
commit92e86702eab5d68cd4eda87069fba906139f5c08 (patch)
tree6edb31f509cb321b3ab9d038bfd6d50ea07f6fac /commands
parent6c9ea022a9022a281031eed75ceb00c4c03f2b5a (diff)
Fix defaultContentLanguageInSubdir with only 1 language
Fixes #10064
Diffstat (limited to 'commands')
-rw-r--r--commands/hugobuilder.go4
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 + "/"
}