mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
This commit is contained in:
@@ -103,8 +103,7 @@ func TestPageCount(t *testing.T) {
|
||||
Source: &source.InMemorySource{ByteSource: urlFakeSource},
|
||||
}
|
||||
s.initializeSiteInfo()
|
||||
s.prepTemplates()
|
||||
must(s.addTemplate("indexes/blue.html", INDEX_TEMPLATE))
|
||||
s.prepTemplates("indexes/blue.html", INDEX_TEMPLATE)
|
||||
|
||||
if err := s.CreatePages(); err != nil {
|
||||
t.Errorf("Unable to create pages: %s", err)
|
||||
|
Reference in New Issue
Block a user