metalsmith-filemetadata1.0.0 • Public • Published
A Metalsmith plugin to add metadata on files based on a pattern.
$ npm install metalsmith-filemetadata
var fileMetadata = ;metalsmith;
pattern property of each rule should be a valid
minimatch pattern. If the pattern
matches the file, the corresponding
metadata are set on the file entry, For a
given file, all patterns are tested, so if several rules are matching, the later
can override the previously applied rules.
preserve: true to any rule will prevent overriding pre-defined values.