From: Bjørn Erik Pedersen Date: Thu, 27 Dec 2018 09:08:44 +0000 (+0100) Subject: Make docshelper run again X-Git-Tag: v0.54.0~35 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c24f3ae22b27dfe5339662277f8183596a6d148d;p=brevno-suite%2Fhugo Make docshelper run again Fixes #5568 --- diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go index ef8cc09b..6fc35f3c 100644 --- a/tpl/cast/docshelper.go +++ b/tpl/cast/docshelper.go @@ -17,6 +17,7 @@ import ( "github.com/gohugoio/hugo/common/loggers" "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/docshelper" + "github.com/gohugoio/hugo/htesting" "github.com/gohugoio/hugo/tpl/internal" "github.com/spf13/viper" ) @@ -29,6 +30,7 @@ func init() { Cfg: viper.New(), Log: loggers.NewErrorLogger(), BuildStartListeners: &deps.Listeners{}, + Site: htesting.NewTestHugoSite(), } var namespaces internal.TemplateFuncsNamespaces