aboutsummaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-07-31 16:41:10 +0200
committerBjørn Erik Pedersen <[email protected]>2017-07-31 16:41:10 +0200
commite321306c6855974478ae14ece84d42d6f6784f18 (patch)
treeeddf7eb848241f4a5585768a05bb43318928ac01 /media
parent9c1977872c55192c67938439cfb73f5d745be24d (diff)
downloadhugo-e321306c6855974478ae14ece84d42d6f6784f18.tar.gz
hugo-e321306c6855974478ae14ece84d42d6f6784f18.zip
media: Add JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/mediaType.go b/media/mediaType.go
index 2f238ba23..59de655b6 100644
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -33,10 +33,10 @@ const (
// If suffix is not provided, the sub type will be used.
// See // https://en.wikipedia.org/wiki/Media_type
type Type struct {
- MainType string // i.e. text
- SubType string // i.e. html
- Suffix string // i.e html
- Delimiter string // defaults to "."
+ MainType string `json:"mainType"` // i.e. text
+ SubType string `json:"subType"` // i.e. html
+ Suffix string `json:"suffix"` // i.e html
+ Delimiter string `json:"delimiter"` // defaults to "."
}
// FromTypeString creates a new Type given a type sring on the form MainType/SubType and