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.
$ npm install metalsmith-excerpts
Install via npm and then add the
metalsmith-excerpts key to your
metalsmith.json plugin, like so:
var excerpts = ;metalsmith;