mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 06:41:44 +00: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) {
|
func (t Type) MarshalJSON() ([]byte, error) {
|
||||||
type Alias Type
|
type Alias Type
|
||||||
return json.Marshal(&struct {
|
return json.Marshal(&struct {
|
||||||
Type string
|
Type string `json:"type"`
|
||||||
String string
|
String string `json:"string"`
|
||||||
Alias
|
Alias
|
||||||
}{
|
}{
|
||||||
Type: t.Type(),
|
Type: t.Type(),
|
||||||
|
|
Loading…
Reference in a new issue