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 /media | |
parent | 574c2959b8d3338764fa1db102a5e0fd6ed322d9 (diff) | |
download | hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.tar.gz hugo-7204b354a9f46778f068a4712447d6d4fefbefd8.zip |
Some minify configuration adjustments
Diffstat (limited to 'media')
-rw-r--r-- | media/docshelper.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/media/docshelper.go b/media/docshelper.go index f5afb52f0..de9dbe599 100644 --- a/media/docshelper.go +++ b/media/docshelper.go @@ -6,12 +6,8 @@ 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["types"] = DefaultTypes - return docs + docsProvider := func() docshelper.DocProvider { + return docshelper.DocProvider{"media": map[string]interface{}{"types": DefaultTypes}} } - - docshelper.AddDocProvider("media", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } |