diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-07-26 10:24:27 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:16 +0300 |
commit | 75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6 (patch) | |
tree | 37f43d8af433033996fbae9d2b3914888144c60a /hugolib/siteinfo_test.go | |
parent | 618948e4a83665f8355b01d8a3f7a7186e6bd3eb (diff) |
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/siteinfo_test.go')
-rw-r--r-- | hugolib/siteinfo_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/siteinfo_test.go b/hugolib/siteinfo_test.go index 8110dd932..362be2a46 100644 --- a/hugolib/siteinfo_test.go +++ b/hugolib/siteinfo_test.go @@ -27,7 +27,7 @@ func TestSiteInfoParams(t *testing.T) { defer viper.Reset() viper.Set("Params", map[string]interface{}{"MyGlobalParam": "FOOBAR_PARAM"}) - s := &Site{} + s := newSiteDefaultLang() s.initialize() if s.Info.Params["MyGlobalParam"] != "FOOBAR_PARAM" { @@ -53,7 +53,7 @@ func TestSiteInfoPermalinks(t *testing.T) { defer viper.Reset() viper.Set("Permalinks", map[string]interface{}{"section": "/:title"}) - s := &Site{} + s := newSiteDefaultLang() s.initialize() permalink := s.Info.Permalinks["section"] |