Metalsmith plugin for extracting dates from Jekyll-style filenames
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nvmrc
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

metalsmith-jekyll-dates build status

Greenkeeper badge

Adds date and slug metadata to files that have Jekyll-style filenames.

Example

Before:

{
  "2000-10-15-my-post.md": {
    contents: new Buffer('...')
  }
}

After

{
  "2000-10-15-my-post.md": {
    date: "Sun Oct 15 2000 12:00:00 GMT-0700 (PDT)",
    slug: "my-post"
    contents: new Buffer('...')
  }
}

See Also

If this doesn't do what you want it to, look at: