mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 04:04:56 -04:00
hugolib: Use the site's Tmpl for non-renderable pages
This commit is contained in:
parent
7a5cc3cfd7
commit
25bfa7e12f
@ -1465,7 +1465,7 @@ func (p *Page) prepareLayouts() error {
|
||||
var layouts []string
|
||||
if !p.IsRenderable() {
|
||||
self := "__" + p.TargetPath()
|
||||
_, err := p.Site.owner.Tmpl.GetClone().New(self).Parse(string(p.Content))
|
||||
_, err := p.s.Tmpl.GetClone().New(self).Parse(string(p.Content))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user