lib/index.js
function (file) {
  var match = pattern.exec(basename(file));

  return { date: match[1], url: match[2] };
}
function (file) {
  var match = pattern.exec(basename(file));

  return { date: match[1], url: match[2] };
}
function ( file ) { var match = pattern . exec ( basename ( file ) ) ; return { date : match [ 1 ] , url : match [ 2 ] } ; }
Extracts date and permalink parts from a Jekyll style post.

@example

parseJekyllStylePost("2014-04-05-hello-world.md");
//=> { date: "2014-04-05", url: "hello-world" }

@param  {String} file
@return {Object.<string, string>}
Extracts date and permalink parts from a Jekyll style post .