diff options
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index fa9f40922..5a04c6ce7 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -1384,13 +1384,14 @@ func (p *Page) prepareLayouts() error { if p.Kind == KindPage { if !p.IsRenderable() { self := "__" + p.UniqueID() - _, err := p.s.Tmpl.GetClone().New(self).Parse(string(p.Content)) + err := p.s.Tmpl.AddLateTemplate(self, string(p.Content)) if err != nil { return err } p.selfLayout = self } } + return nil } |