A Metalsmith plugin that automatically add page title from first heading in processed file
$ npm install metalsmith-title
var date = require('metalsmith-title');
metalsmith.use(title());
That will add title to all
Install via npm and then add the metalsmith-title
key to your metalsmith.json
:
{
"plugins": {
"metalsmith-title": true
}
}
MIT