Fix mixed case Page params handling in content adapters

Fixes #12497
This commit is contained in:
Bjørn Erik Pedersen
2024-05-15 11:59:03 +02:00
parent 1aacfced39
commit 39cf906bc0
2 changed files with 29 additions and 0 deletions

View File

@@ -151,6 +151,11 @@ func (p *PageConfig) Compile(basePath string, pagesFromData bool, ext string, lo
p.Path = path.Join(basePath, p.Path)
}
if p.Params == nil {
p.Params = make(maps.Params)
}
maps.PrepareParams(p.Params)
if p.Content.Markup == "" && p.Content.MediaType == "" {
if ext == "" {
ext = "md"