Have ideas to improve npm?Join in the discussion! »

metalsmith-build-date

0.1.0 • Public • Published

metalsmith-build-date

A Metalsmith plugin that adds a build date to the metadata. Useful for atom.xml or other feeds.

Installation

$ npm install metalsmith-build-date

Usage

var date = require('metalsmith-build-date');
 
metalsmith.use(date());

That will add a global date property to your metadata, so you can use it in a template like:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>{{ date }}</updated>

CLI Usage

Install via npm and then add the metalsmith-build-date key to your metalsmith.json:

{
  "plugins": {
    "metalsmith-build-date": true
  }
}

License

MIT

Keywords

none

Install

npm i [email protected]

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar