diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-03-28 00:09:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-03-28 00:09:25 +0200 |
commit | f2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb (patch) | |
tree | 3305fc0dec2575989a6655434048b6dd0684b564 /media/mediaType.go | |
parent | 492327368848bcf21cfd23d5490bc47b6ea44897 (diff) | |
download | hugo-f2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb.tar.gz hugo-f2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb.zip |
media: Add some more relevant MIME types
Diffstat (limited to 'media/mediaType.go')
-rw-r--r-- | media/mediaType.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index 07dbcc211..f6597fdb6 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -47,11 +47,14 @@ func (m Type) String() string { } var ( - CalendarType = Type{"text", "calendar", "ics"} - CSSType = Type{"text", "css", "css"} - HTMLType = Type{"text", "html", "html"} - JSONType = Type{"application", "json", "json"} - RSSType = Type{"application", "rss", "xml"} + CalendarType = Type{"text", "calendar", "ics"} + CSSType = Type{"text", "css", "css"} + HTMLType = Type{"text", "html", "html"} + JavascriptType = Type{"application", "javascript", "js"} + JSONType = Type{"application", "json", "json"} + RSSType = Type{"application", "rss", "xml"} + XMLType = Type{"application", "xml", "xml"} + TextType = Type{"text", "plain", "txt"} ) // TODO(bep) output mime.AddExtensionType |