aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/menu_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-07-26 10:24:27 +0200
committerBjørn Erik Pedersen <[email protected]>2016-09-06 18:32:16 +0300
commit75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6 (patch)
tree37f43d8af433033996fbae9d2b3914888144c60a /hugolib/menu_test.go
parent618948e4a83665f8355b01d8a3f7a7186e6bd3eb (diff)
downloadhugo-75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6.tar.gz
hugo-75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6.zip
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.
Diffstat (limited to 'hugolib/menu_test.go')
-rw-r--r--hugolib/menu_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go
index 602775a4b..03219a48a 100644
--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -683,6 +683,7 @@ func createTestSite(pageSources []source.ByteSource) *Site {
s := &Site{
Source: &source.InMemorySource{ByteSource: pageSources},
+ Lang: newDefaultLanguage(),
}
return s
}