From: Bjørn Erik Pedersen Date: Sat, 23 Sep 2017 08:20:11 +0000 (+0200) Subject: Fix the docs helper tool X-Git-Tag: v0.28~13 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c31e083ead1d494d7ebaa3947028ea6cee302f32;p=brevno-suite%2Fhugo Fix the docs helper tool --- diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go index e77c83d2..794ede3e 100644 --- a/tpl/cast/docshelper.go +++ b/tpl/cast/docshelper.go @@ -17,13 +17,14 @@ import ( "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/docshelper" "github.com/gohugoio/hugo/tpl/internal" + "github.com/spf13/viper" ) // This file provides documentation support and is randomly put into this package. func init() { docsProvider := func() map[string]interface{} { docs := make(map[string]interface{}) - d := &deps.Deps{} + d := &deps.Deps{Cfg: viper.New()} var namespaces internal.TemplateFuncsNamespaces