Skip to content

Commit

Permalink
Fix static content files multilingual root regression
Browse files Browse the repository at this point in the history
Fixes #11223
  • Loading branch information
bep committed Jul 8, 2023
1 parent 92e8670 commit 6019953
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions hugolib/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := `
Expand All @@ -1325,7 +1324,6 @@ Home.
})

t.Run("Two languages, default in sub dir", func(t *testing.T) {
t.Skip()
t.Parallel()

files := `
Expand Down
3 changes: 1 addition & 2 deletions hugolib/paths/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 6019953

Please sign in to comment.