aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-05-15 11:59:03 +0200
committerBjørn Erik Pedersen <[email protected]>2024-05-15 12:39:33 +0200
commit39cf906bc0eb59cfc81be0ccd8985a28567e7599 (patch)
tree2487ee5a2ed428dc09a6ee71e4874592d6790a59 /resources
parent1aacfced390604eee7fc48eb13b9b45f8399a557 (diff)
downloadhugo-39cf906bc0eb59cfc81be0ccd8985a28567e7599.tar.gz
hugo-39cf906bc0eb59cfc81be0ccd8985a28567e7599.zip
Fix mixed case Page params handling in content adapters
Fixes #12497
Diffstat (limited to 'resources')
-rw-r--r--resources/page/pagemeta/page_frontmatter.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/page/pagemeta/page_frontmatter.go b/resources/page/pagemeta/page_frontmatter.go
index d5ed1e401..10ba2a991 100644
--- a/resources/page/pagemeta/page_frontmatter.go
+++ b/resources/page/pagemeta/page_frontmatter.go
@@ -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"