]> git.maquefel.me Git - brevno-suite/hugo/commit
Add ContentTypes to config
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 7 Feb 2025 09:29:35 +0000 (10:29 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 8 Feb 2025 09:31:15 +0000 (10:31 +0100)
commitc2fb22120924b66ba6d89dacca6487ff12e78e0f
tree93e98c6f9929b8b759a71a25dbcda15c84f88a1e
parent4245a4514d58c0896900bc242390b31e92005d43
Add ContentTypes to config

This is an empty struct for now, but we will most likely expand on that.

```
[contentTypes]
  [contentTypes.'text/markdown']
```

The above means that only Markdown will be considered a content type. E.g. HTML will be treated as plain text.

Fixes #12274
12 files changed:
common/hreflect/helpers.go
config/allconfig/allconfig.go
config/allconfig/allconfig_integration_test.go
config/allconfig/alldecoders.go
config/allconfig/configlanguage.go
hugolib/content_map_test.go
media/config.go
media/mediaType_test.go
parser/lowercase_camel_json.go
resources/page/page_nop.go
source/fileInfo.go
tpl/reflect/reflect.go