aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
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"