From c8fff9501d424882a42f750800d9982ec47df640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 8 Mar 2017 13:45:33 +0100 Subject: Implement the first generic JSON output testcase --- media/mediaType.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'media/mediaType.go') 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 -- cgit v1.2.3