diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-06 14:57:56 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-06 14:57:56 +0100 |
commit | 931a1324503a4414e38d26efe82e1add811a8d29 (patch) | |
tree | 657cf5559ceaa075e9aff96a4b7ecb079ab61c8d /tpl | |
parent | 8378358857d852458d01c667d59d13baa59a719c (diff) |
tpl/hugo: Use the correct Hugo var
See #5467
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/hugo/init.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/hugo/init.go b/tpl/hugo/init.go index 5b6d5b99f..e5c7c0f28 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, |