gulp-add-front-matter
A gulp plugin for inserting a data object back into a post.
Setup and usage
Install gulp-add-front-matter
using npm
:
npm i gulp-add-front-matter
In your gulpfile.js
:
var gulp = addFrontMatter = grayMatter = ; gulp
A common use for this plugin is process various Markdown files, manipulate their front matter, and write out the results.
Options
prefix
string
Default: ---\n
The prefix characters to write out before the YAML data.
property
string
Default: data
The name of the property in the resulting object that needs to be written out.
suffix
string
Default: ---\n
The text to write after the YAML data.