shithub: hugo

Download patch

ref: 931a1324503a4414e38d26efe82e1add811a8d29
parent: 8378358857d852458d01c667d59d13baa59a719c
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Dec 6 09:57:56 EST 2018

tpl/hugo: Use the correct Hugo var

See #5467

--- a/tpl/hugo/init.go
+++ b/tpl/hugo/init.go
@@ -15,7 +15,6 @@
 
 import (
 	"github.com/gohugoio/hugo/deps"
-	"github.com/gohugoio/hugo/htesting"
 	"github.com/gohugoio/hugo/tpl/internal"
 )
 
@@ -24,7 +23,7 @@
 func init() {
 	f := func(d *deps.Deps) *internal.TemplateFuncsNamespace {
 
-		h := htesting.NewTestHugoSite().Hugo()
+		h := d.Site.Hugo()
 
 		ns := &internal.TemplateFuncsNamespace{
 			Name:    name,