diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-03-20 16:34:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-03-20 20:35:57 +0100 |
commit | 7204b354a9f46778f068a4712447d6d4fefbefd8 (patch) | |
tree | a7d58d64fb9266f5c3f28251cb677b245925e728 /helpers | |
parent | 574c2959b8d3338764fa1db102a5e0fd6ed322d9 (diff) | |
download | hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.tar.gz hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.zip |
Some minify configuration adjustments
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/docshelper.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/helpers/docshelper.go b/helpers/docshelper.go index 66cbfa7d3..1397acc59 100644 --- a/helpers/docshelper.go +++ b/helpers/docshelper.go @@ -12,8 +12,7 @@ import ( // This is is just some helpers used to create some JSON used in the Hugo docs. func init() { - docsProvider := func() map[string]interface{} { - docs := make(map[string]interface{}) + docsProvider := func() docshelper.DocProvider { var chromaLexers []interface{} @@ -48,11 +47,11 @@ func init() { chromaLexers = append(chromaLexers, lexerEntry) - docs["lexers"] = chromaLexers } - return docs + + return docshelper.DocProvider{"chroma": map[string]interface{}{"lexers": chromaLexers}} } - docshelper.AddDocProvider("chroma", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } |