Fix the docs helper tool - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit c31e083ead1d494d7ebaa3947028ea6cee302f32
DIR parent 9436f0b0c31d2df49647e301ab3d6e2053b356b8
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 23 Sep 2017 10:20:11 +0200
Fix the docs helper tool
Diffstat:
M tpl/cast/docshelper.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git 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