shithub: hugo

Download patch

ref: c24f3ae22b27dfe5339662277f8183596a6d148d
parent: 214e9745b6ee3d1e5639256e05ae8aa5fd514fb3
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Dec 27 05:08:44 EST 2018

Make docshelper run again

Fixes #5568

--- a/tpl/cast/docshelper.go
+++ b/tpl/cast/docshelper.go
@@ -17,6 +17,7 @@
 	"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 @@
 			Cfg:                 viper.New(),
 			Log:                 loggers.NewErrorLogger(),
 			BuildStartListeners: &deps.Listeners{},
+			Site:                htesting.NewTestHugoSite(),
 		}
 
 		var namespaces internal.TemplateFuncsNamespaces