mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
media: Add missing JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
This commit is contained in:
parent
e321306c68
commit
6acbe41f0a
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue