mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
This commit is contained in:
@@ -458,12 +458,16 @@ e`,
|
||||
}
|
||||
|
||||
s.initializeSiteInfo()
|
||||
templatePrep(s)
|
||||
|
||||
s.loadTemplates()
|
||||
|
||||
s.Tmpl.AddTemplate("_default/single.html", "{{.Content}}")
|
||||
|
||||
s.Tmpl.AddInternalShortcode("b.html", `b`)
|
||||
s.Tmpl.AddInternalShortcode("c.html", `c`)
|
||||
s.Tmpl.AddInternalShortcode("d.html", `d`)
|
||||
|
||||
must(s.addTemplate("_default/single.html", "{{.Content}}"))
|
||||
s.Tmpl.MarkReady()
|
||||
|
||||
createAndRenderPages(t, s)
|
||||
|
||||
|
Reference in New Issue
Block a user