mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
output: Prevent setting Name directly in new output formats
Name is derived from the map key. Closes #11947
This commit is contained in:
parent
5b7cb258ec
commit
309d61b220
3 changed files with 3 additions and 4 deletions
|
@ -330,8 +330,7 @@ func TestGetOutputFormatRel(t *testing.T) {
|
|||
b := newTestSitesBuilder(t).
|
||||
WithSimpleConfigFileAndSettings(map[string]any{
|
||||
"outputFormats": map[string]any{
|
||||
"humansTXT": map[string]any{
|
||||
"name": "HUMANS",
|
||||
"HUMANS": map[string]any{
|
||||
"mediaType": "text/plain",
|
||||
"baseName": "humans",
|
||||
"isPlainText": true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue