output: Prevent setting Name directly in new output formats

Name is derived from the map key.

Closes #11947
This commit is contained in:
Bjørn Erik Pedersen 2024-01-31 09:43:02 +01:00
parent 5b7cb258ec
commit 309d61b220
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View file

@ -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,