mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
d8a256c155
commit
4fbce78740
1 changed files with 52 additions and 0 deletions
|
@ -168,6 +168,7 @@ func TestMultiSitesBuild(t *testing.T) {
|
|||
}{
|
||||
{multiSiteTomlConfig, "toml"},
|
||||
{multiSiteYAMLConfig, "yml"},
|
||||
{multiSiteJSONConfig, "json"},
|
||||
} {
|
||||
doTestMultiSitesBuild(t, config.content, config.suffix)
|
||||
}
|
||||
|
@ -654,6 +655,57 @@ Languages:
|
|||
|
||||
`
|
||||
|
||||
var multiSiteJSONConfig = `
|
||||
{
|
||||
"DefaultExtension": "html",
|
||||
"baseurl": "http://example.com/blog",
|
||||
"DisableSitemap": false,
|
||||
"DisableRSS": false,
|
||||
"RSSUri": "index.xml",
|
||||
"paginate": 1,
|
||||
"DefaultContentLanguage": "fr",
|
||||
"permalinks": {
|
||||
"other": "/somewhere/else/:filename"
|
||||
},
|
||||
"blackfriday": {
|
||||
"angledQuotes": true
|
||||
},
|
||||
"Taxonomies": {
|
||||
"tag": "tags"
|
||||
},
|
||||
"Languages": {
|
||||
"en": {
|
||||
"weight": 10,
|
||||
"title": "English",
|
||||
"blackfriday": {
|
||||
"angledQuotes": false
|
||||
}
|
||||
},
|
||||
"fr": {
|
||||
"weight": 20,
|
||||
"title": "Français",
|
||||
"Taxonomies": {
|
||||
"plaque": "plaques"
|
||||
}
|
||||
},
|
||||
"nn": {
|
||||
"weight": 30,
|
||||
"title": "Nynorsk",
|
||||
"Taxonomies": {
|
||||
"lag": "lag"
|
||||
}
|
||||
},
|
||||
"nb": {
|
||||
"weight": 40,
|
||||
"title": "Bokmål",
|
||||
"Taxonomies": {
|
||||
"lag": "lag"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
func createMultiTestSites(t *testing.T, tomlConfig string) *HugoSites {
|
||||
return createMultiTestSitesForConfig(t, tomlConfig, "toml")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue