Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Request: Allow app to specify root metadata property #20

@ericberdahl

Description

@ericberdahl

As currently implemented, the plugin adds all properties to the root metadata object. So, for example, if the files foo.json and bar.yml were parsed, the metalsmith.metadata() would then have foo and bar properties containing the parsed metadata from the respective files.

It would be useful to provide an option for the app to specify a root property in which those parsed properties were added. For example, if the app specified that all parsed files be added to the '_data' property, the plugin would ensure that the _data property existed in the metadata object (possibly adding it if absent), and then add foo and bar properties to metalsmith.metadata()._data.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions