mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 19:52:09 -05:00
parent
6eca0a3dee
commit
84bc8d84e4
1 changed files with 12 additions and 0 deletions
|
@ -278,6 +278,18 @@ Content.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for i, p := range nnSite.RegularPages() {
|
||||||
|
msg := fmt.Sprintf("Test %d", i+1)
|
||||||
|
assert.Equal("nn", p.Language().Lang, msg)
|
||||||
|
assert.Contains(p.Title(), "nn", msg)
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, p := range svSite.RegularPages() {
|
||||||
|
msg := fmt.Sprintf("Test %d", i+1)
|
||||||
|
assert.Equal("sv", p.Language().Lang, msg)
|
||||||
|
assert.Contains(p.Title(), "sv", msg)
|
||||||
|
}
|
||||||
|
|
||||||
// Check bundles
|
// Check bundles
|
||||||
bundleEn := enSite.RegularPages()[len(enSite.RegularPages())-1]
|
bundleEn := enSite.RegularPages()[len(enSite.RegularPages())-1]
|
||||||
bundleNn := nnSite.RegularPages()[len(nnSite.RegularPages())-1]
|
bundleNn := nnSite.RegularPages()[len(nnSite.RegularPages())-1]
|
||||||
|
|
Loading…
Reference in a new issue