mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
92e86702ea
commit
6019953769
2 changed files with 1 additions and 4 deletions
|
@ -1299,7 +1299,6 @@ Home.
|
||||||
func TestDefaultContentLanguageInSubdirOnlyOneLanguage(t *testing.T) {
|
func TestDefaultContentLanguageInSubdirOnlyOneLanguage(t *testing.T) {
|
||||||
|
|
||||||
t.Run("One language, default in sub dir", func(t *testing.T) {
|
t.Run("One language, default in sub dir", func(t *testing.T) {
|
||||||
t.Skip()
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
|
@ -1325,7 +1324,6 @@ Home.
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Two languages, default in sub dir", func(t *testing.T) {
|
t.Run("Two languages, default in sub dir", func(t *testing.T) {
|
||||||
t.Skip()
|
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
files := `
|
files := `
|
||||||
|
|
|
@ -102,9 +102,8 @@ func (p *Paths) Lang() string {
|
||||||
return p.Cfg.Language().Lang
|
return p.Cfg.Language().Lang
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO1 check this.
|
|
||||||
func (p *Paths) GetTargetLanguageBasePath() string {
|
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.
|
// In a multihost configuration all assets will be published below the language code.
|
||||||
return p.Lang()
|
return p.Lang()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue