Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-20 18:34:53 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-20 22:35:57 +0300
commit7204b354a9f46778f068a4712447d6d4fefbefd8 (patch)
treea7d58d64fb9266f5c3f28251cb677b245925e728 /tpl
parent574c2959b8d3338764fa1db102a5e0fd6ed322d9 (diff)
Some minify configuration adjustments
Diffstat (limited to 'tpl')
-rw-r--r--tpl/cast/docshelper.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/tpl/cast/docshelper.go b/tpl/cast/docshelper.go
index 1ee614b10..a497f6e8a 100644
--- a/tpl/cast/docshelper.go
+++ b/tpl/cast/docshelper.go
@@ -24,8 +24,7 @@ import (
// This file provides documentation support and is randomly put into this package.
func init() {
- docsProvider := func() map[string]interface{} {
- docs := make(map[string]interface{})
+ docsProvider := func() docshelper.DocProvider {
d := &deps.Deps{
Cfg: viper.New(),
Log: loggers.NewErrorLogger(),
@@ -41,11 +40,11 @@ func init() {
}
- docs["funcs"] = namespaces
- return docs
+ return docshelper.DocProvider{"tpl": map[string]interface{}{"funcs": namespaces}}
+
}
- docshelper.AddDocProvider("tpl", docsProvider)
+ docshelper.AddDocProviderFunc(docsProvider)
}
func newTestConfig() *viper.Viper {