diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-03-09 14:05:31 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-03-09 14:37:58 +0100 |
commit | 973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4 (patch) | |
tree | 4e2635062426b690c46f8cbf42c164df6154e757 /hugolib/robotstxt_test.go | |
parent | 9896cd0030da75bf6acab14dad0a7f78472ceff9 (diff) | |
download | hugo-973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4.tar.gz hugo-973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4.zip |
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6
Fixes #1879
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r-- | hugolib/robotstxt_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index c964c0231..dfbaefea1 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -31,8 +31,7 @@ func TestRobotsTXTOutput(t *testing.T) { s.initializeSiteInfo() - s.prepTemplates() - s.addTemplate("robots.txt", ROBOTSTXT_TEMPLATE) + s.prepTemplates("robots.txt", ROBOTSTXT_TEMPLATE) if err := s.CreatePages(); err != nil { t.Fatalf("Unable to create pages: %s", err) |