mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 02:03:04 +00:00
parent
7c7974b711
commit
7b4ade56dd
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ type Format struct {
|
||||||
// can be overridden by providing a new definition for those types.
|
// can be overridden by providing a new definition for those types.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
MediaType media.Type `json:"mediaType"`
|
MediaType media.Type `json:"-"`
|
||||||
|
|
||||||
// Must be set to a value when there are two or more conflicting mediatype for the same resource.
|
// Must be set to a value when there are two or more conflicting mediatype for the same resource.
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
|
@ -382,7 +382,7 @@ func (f Format) BaseFilename() string {
|
||||||
func (f Format) MarshalJSON() ([]byte, error) {
|
func (f Format) MarshalJSON() ([]byte, error) {
|
||||||
type Alias Format
|
type Alias Format
|
||||||
return json.Marshal(&struct {
|
return json.Marshal(&struct {
|
||||||
MediaType string
|
MediaType string `json:"mediaType"`
|
||||||
Alias
|
Alias
|
||||||
}{
|
}{
|
||||||
MediaType: f.MediaType.String(),
|
MediaType: f.MediaType.String(),
|
||||||
|
|
Loading…
Reference in a new issue