aboutsummaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-07-31 16:53:13 +0200
committerBjørn Erik Pedersen <[email protected]>2017-07-31 16:53:13 +0200
commit6acbe41f0abaaa63478f24ad4111829be993bbfe (patch)
treeeba9d33530ec922448f3da74b0477ff488e103af /media
parente321306c6855974478ae14ece84d42d6f6784f18 (diff)
downloadhugo-6acbe41f0abaaa63478f24ad4111829be993bbfe.tar.gz
hugo-6acbe41f0abaaa63478f24ad4111829be993bbfe.zip
media: Add missing JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mediaType.go b/media/mediaType.go
index 59de655b6..8946a9e83 100644
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -192,8 +192,8 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
func (t Type) MarshalJSON() ([]byte, error) {
type Alias Type
return json.Marshal(&struct {
- Type string
- String string
+ Type string `json:"type"`
+ String string `json:"string"`
Alias
}{
Type: t.Type(),