summaryrefslogtreecommitdiffstats
path: root/hugolib/sitemap_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:05:31 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:37:58 +0100
commit973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4 (patch)
tree4e2635062426b690c46f8cbf42c164df6154e757 /hugolib/sitemap_test.go
parent9896cd0030da75bf6acab14dad0a7f78472ceff9 (diff)
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r--hugolib/sitemap_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go
index bb3eaccd2..34f2d3477 100644
--- a/hugolib/sitemap_test.go
+++ b/hugolib/sitemap_test.go
@@ -50,8 +50,7 @@ func TestSitemapOutput(t *testing.T) {
s.initializeSiteInfo()
- s.prepTemplates()
- s.addTemplate("sitemap.xml", SITEMAP_TEMPLATE)
+ s.prepTemplates("sitemap.xml", SITEMAP_TEMPLATE)
if err := s.CreatePages(); err != nil {
t.Fatalf("Unable to create pages: %s", err)