Metalsmith plugin to add various build infos to the metadata.
npm install metalsmith-build-info --save-dev
var buildinfo = require("metalsmith-build-info"); Metalsmith(__dirname) /* ... */ .use(buildinfo()) /* ... */
The plugin will set the following metadata:
buildinfo.date: The date at which the site was generated.
buildinfo.user: The user who generated the site (i.e.
buildinfo.nodejs: The version of Node.js used to generate the site (i.e.
buildinfo.arch: String identifying the processor architecture that the Node.js is currently running on (i.e.
buildinfo.platform: String identifying the operating system platform on which the Node.js process is running on (i.e.
buildinfo.version: The version of Metalsmith used to generate the site (i.e.