diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-08 11:55:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-08 16:08:46 +0200 |
commit | 6019953769741d3ec0b48aa16b2a6cc06a93f5ba (patch) | |
tree | 8f15f6cc963ce5dcf92afc9baba8ba40a4e5101d /hugolib | |
parent | 92e86702eab5d68cd4eda87069fba906139f5c08 (diff) |
Fix static content files multilingual root regression
Fixes #11223
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/config_test.go | 2 | ||||
-rw-r--r-- | hugolib/paths/paths.go | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go index c4a373232..567059e68 100644 --- a/hugolib/config_test.go +++ b/hugolib/config_test.go @@ -1299,7 +1299,6 @@ Home. func TestDefaultContentLanguageInSubdirOnlyOneLanguage(t *testing.T) { t.Run("One language, default in sub dir", func(t *testing.T) { - t.Skip() t.Parallel() files := ` @@ -1325,7 +1324,6 @@ Home. }) t.Run("Two languages, default in sub dir", func(t *testing.T) { - t.Skip() t.Parallel() files := ` diff --git a/hugolib/paths/paths.go b/hugolib/paths/paths.go index b0d9e3c1b..817670dbd 100644 --- a/hugolib/paths/paths.go +++ b/hugolib/paths/paths.go @@ -102,9 +102,8 @@ func (p *Paths) Lang() string { return p.Cfg.Language().Lang } -// TODO1 check this. func (p *Paths) GetTargetLanguageBasePath() string { - if len(p.Cfg.Languages()) > 1 { + if p.Cfg.IsMultihost() { // In a multihost configuration all assets will be published below the language code. return p.Lang() } |