tpl/hugo: Use the correct Hugo var

See #5467
This commit is contained in:
Bjørn Erik Pedersen 2018-12-06 14:57:56 +01:00
parent 8378358857
commit 931a132450
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

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