mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
Introduce HugoSites type
And a Hugo global variable which contains the site under build. This is really needed to get some level of control of the "multiple languages" in play. There are still work related to this scattered around, but that will come. With this commit, the multilingual feature is starting to work.
This commit is contained in:
parent
618948e4a8
commit
75dd596e6c
16 changed files with 117 additions and 81 deletions
|
@ -40,6 +40,7 @@ func TestRobotsTXTOutput(t *testing.T) {
|
|||
|
||||
s := &Site{
|
||||
Source: &source.InMemorySource{ByteSource: weightedSources},
|
||||
Lang: newDefaultLanguage(),
|
||||
}
|
||||
|
||||
s.initializeSiteInfo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue