From 75dd596e6c38466fcb97a8b9dc9eb20fc2fb7fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 26 Jul 2016 10:24:27 +0200 Subject: 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. --- hugolib/robotstxt_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'hugolib/robotstxt_test.go') diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index 461d04e5d..8e4b13db6 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -40,6 +40,7 @@ func TestRobotsTXTOutput(t *testing.T) { s := &Site{ Source: &source.InMemorySource{ByteSource: weightedSources}, + Lang: newDefaultLanguage(), } s.initializeSiteInfo() -- cgit v1.2.3