From 931a1324503a4414e38d26efe82e1add811a8d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 6 Dec 2018 14:57:56 +0100 Subject: [PATCH] tpl/hugo: Use the correct Hugo var See #5467 --- tpl/hugo/init.go | 3 +-- 1 file changed, 1 insertion(+), 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,