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 /output | |
parent | 574c2959b8d3338764fa1db102a5e0fd6ed322d9 (diff) | |
download | hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.tar.gz hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.zip |
Some minify configuration adjustments
Diffstat (limited to 'output')
-rw-r--r-- | output/docshelper.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/output/docshelper.go b/output/docshelper.go index f08b20b01..13291ce9a 100644 --- a/output/docshelper.go +++ b/output/docshelper.go @@ -10,15 +10,16 @@ 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{}) - - docs["formats"] = DefaultFormats - docs["layouts"] = createLayoutExamples() - return docs + docsProvider := func() docshelper.DocProvider { + return docshelper.DocProvider{ + "output": map[string]interface{}{ + "formats": DefaultFormats, + "layouts": createLayoutExamples(), + }, + } } - docshelper.AddDocProvider("output", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } func createLayoutExamples() interface{} { |