summaryrefslogtreecommitdiffstats
path: root/tpl/cast
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-27 10:08:44 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-27 10:08:44 +0100
commitc24f3ae22b27dfe5339662277f8183596a6d148d (patch)
tree04678f2f93d7f76215192e0c0df583b81be481b6 /tpl/cast
parent214e9745b6ee3d1e5639256e05ae8aa5fd514fb3 (diff)
Make docshelper run again
Fixes #5568
Diffstat (limited to 'tpl/cast')
-rw-r--r--tpl/cast/docshelper.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go
index ef8cc09be..6fc35f3c7 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