diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-02 12:55:09 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-02 13:36:09 +0100 |
commit | 61f210dd7abe5de77c27dc6a6995a3ad5e77afa1 (patch) | |
tree | 9aaad884c8b3005e1155b8d01e07b8cbd29b037c /tpl/cast | |
parent | f8446188dbec8378f34f0fea39161a49fcc46083 (diff) |
tpl: Fix the docshelper
Diffstat (limited to 'tpl/cast')
-rw-r--r-- | tpl/cast/docshelper.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go index 794ede3e3..ef8cc09be 100644 --- a/tpl/cast/docshelper.go +++ b/tpl/cast/docshelper.go @@ -14,6 +14,7 @@ package cast import ( + "github.com/gohugoio/hugo/common/loggers" "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/docshelper" "github.com/gohugoio/hugo/tpl/internal" @@ -24,7 +25,11 @@ import ( func init() { docsProvider := func() map[string]interface{} { docs := make(map[string]interface{}) - d := &deps.Deps{Cfg: viper.New()} + d := &deps.Deps{ + Cfg: viper.New(), + Log: loggers.NewErrorLogger(), + BuildStartListeners: &deps.Listeners{}, + } var namespaces internal.TemplateFuncsNamespaces |