node package manager

metalsmith-excerpt

metalsmith-excerpt

A Metalsmith plugin to add an excerpt to files.

Installation

$ npm install metalsmith-excerpt

CLI Usage

Install via npm and then add the metalsmith-excerpt key to your metalsmith.json plugin, like so:

{
  "plugins": {
    "metalsmith-excerpt": true
  } 
}

Javascript Usage

var excerpt = require('metalsmith-excerpt');
 
metalsmith.use(excerpt());

License

MIT