Ajedi32 / metalsmith-matters

A Metalsmith plugin to read file metadata from YAML frontmatter
MIT License
8 stars 2 forks source link

Global metadata #10

Closed SrAceves closed 3 years ago

SrAceves commented 3 years ago

Is there a way to expose the collected frontmatter metadata as a separate top-level namespace? or within the metadata property of metalsmith?

Ajedi32 commented 3 years ago

This plugin is for setting file-level metadata. Global metadata can be set using the metadata method on Metalsmith itself: https://github.com/segmentio/metalsmith#metadatajson