mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
output: Prevent setting Name directly in new output formats
Name is derived from the map key. Closes #11947
This commit is contained in:
@@ -29,7 +29,7 @@ type Format struct {
|
||||
// The Name is used as an identifier. Internal output formats (i.e. html and rss)
|
||||
// can be overridden by providing a new definition for those types.
|
||||
// <docsmeta>{ "identifiers": ["html", "rss"] }</docsmeta>
|
||||
Name string `json:"name"`
|
||||
Name string `json:"-"`
|
||||
|
||||
MediaType media.Type `json:"-"`
|
||||
|
||||
|
Reference in New Issue
Block a user