shithub: hugo

Download patch

ref: 25bfa7e12fcd044368e9983481dfd4bfc8558a55
parent: 7a5cc3cfd7a38ffa3cfa07d40bbb490ea228ac0d
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Feb 9 20:28:02 EST 2017

hugolib: Use the site's Tmpl for non-renderable pages

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -1465,7 +1465,7 @@
 		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
 			}