diff options
Diffstat (limited to 'hugolib/page_bundler_handlers.go')
-rw-r--r-- | hugolib/page_bundler_handlers.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/page_bundler_handlers.go b/hugolib/page_bundler_handlers.go index 8696959dc..996712466 100644 --- a/hugolib/page_bundler_handlers.go +++ b/hugolib/page_bundler_handlers.go @@ -254,6 +254,12 @@ func (c *contentHandlers) parsePage(h contentHandler) contentHandler { return p.Resources[i].RelPermalink() < p.Resources[j].RelPermalink() }) + + // Assign metadata from front matter if set + if len(p.resourcesMetadata) > 0 { + resource.AssignMetadata(p.resourcesMetadata, p.Resources...) + } + } return h(ctx) |