diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-03-08 13:45:33 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-03-27 15:43:56 +0200 |
commit | c8fff9501d424882a42f750800d9982ec47df640 (patch) | |
tree | 03b49241a12ddcf98212959b8e3c7f954ae94685 /media | |
parent | 3ec5fc35043639e7592819014180666b1a8e926b (diff) | |
download | hugo-c8fff9501d424882a42f750800d9982ec47df640.tar.gz hugo-c8fff9501d424882a42f750800d9982ec47df640.zip |
Implement the first generic JSON output testcase
Diffstat (limited to 'media')
-rw-r--r-- | media/mediaType.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index 4663a274d..877404ddc 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -46,21 +46,11 @@ func (m Type) String() string { } var ( + CSSType = Type{"text", "css", "css"} HTMLType = Type{"text", "html", "html"} + JSONType = Type{"application", "json", "json"} RSSType = Type{"application", "rss", "xml"} ) -// DefaultMediaTypes holds a default set of media types by Hugo. -// These can be ovverriden, and more added if needed, in the Hugo configuration file. -// The final media type set set will also be added as extensions to mime so -// they will be recognised by the built-in server in Hugo. -// TODO(bep) output remove -var DefaultMediaTypes = Types{ - HTMLType, - RSSType, - - // TODO(bep) output -} - // TODO(bep) output mime.AddExtensionType // TODO(bep) text/template vs html/template |