Neutral Political Machine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

metalsmith-jekyll-dates

0.0.5 • Public • Published

metalsmith-jekyll-dates

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:

install

npm i metalsmith-jekyll-dates

Downloadsweekly downloads

1

version

0.0.5

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability