mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Some minify configuration adjustments
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user