diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-31 09:43:02 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-31 09:43:02 +0100 |
commit | 309d61b22064e59f17d3d8cc44b02d9007e24dcb (patch) | |
tree | 2500bf637ab4c71833ab99503a7a3725f385ab52 /hugolib | |
parent | 5b7cb258ec26d7de690099f5dc39935b8d728155 (diff) |
output: Prevent setting Name directly in new output formats
Name is derived from the map key.
Closes #11947
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site_output_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go index 9bcb13ea4..a68555574 100644 --- a/hugolib/site_output_test.go +++ b/hugolib/site_output_test.go @@ -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, |