metalsmith-excerpts
A Metalsmith plugin to extract an excerpt from HTML files.
Last updated a year ago by woodyrew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install metalsmith-excerpts 
SYNC missed versions from official npm registry.

metalsmith-excerpts

npm version code style: xo metalsmith: core plugin

Known Vulnerabilities

A Metalsmith plugin to extract an excerpt from HTML files.

The excerpt is scraped from first paragraph (<p> tag) of the rendered HTML.

If a file already has an excerpt value, that value will be returned.

Installation

$ npm install metalsmith-excerpts

CLI Usage

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

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

Javascript Usage

var excerpts = require('metalsmith-excerpts');

metalsmith.use(excerpts());

License

MIT

Current Tags

  • 1.3.0                                ...           latest (a year ago)

7 Versions

  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |