npm install --save-dev metalsmith-date-in-filename
var Metalsmith = require('Metalsmith');
var dateInFilename = require('metalsmith-date-in-filename');
Metalsmith(__dirname)
.use(dateInFilename({override: true})) // can be "dateInFilename(true)", which is equivalent
.build();
{
"plugins": {
"metalsmith-date-in-filename": {"override": true}
}
}
ISC