Create Jekyll Front Matter from single markdown contents.
npm install jekyll-meta-from-markdown
var jekyllMatter = require("jekyll-meta-from-markdown");
jekyllMatter(input); // => output
# Title
test text
* item 1
* item 2
---
layout: post
title: "Title"
date: 2014-09-08T21:38:00.000Z
---
test text
* item 1
* item 2
jekyll-meta-from-markdown
can accept options object as seconde argument.
var jekyllMatter = require("jekyll-meta-from-markdown");
var options = {
date : new Date()
}
jekyllMatter(input, options); // => output
date
: {Date} - Date objectauthor
: {String} - author nametags
: {Array} - strings of tag names for the articlegit checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT