mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
media: Add missing JSON tags to Type
See https://github.com/gohugoio/hugoDocs/issues/114
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user