From: Bjørn Erik Pedersen Date: Thu, 6 Dec 2018 13:57:56 +0000 (+0100) Subject: tpl/hugo: Use the correct Hugo var X-Git-Tag: v0.53~38 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=931a13245;p=brevno-suite%2Fhugo tpl/hugo: Use the correct Hugo var See #5467 --- diff --git a/tpl/hugo/init.go b/tpl/hugo/init.go index 5b6d5b99..e5c7c0f2 100644 --- a/tpl/hugo/init.go +++ b/tpl/hugo/init.go @@ -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,