A Metalsmith plugin to add dynamic values to the metadata object of metalsmith
$ npm install gobha-meta
let meta = require('gobha-meta')
metalsmith.use(meta())
This plugin has no options, for now
The following metadata elements are added
Returns the number of milliseconds since midnight Jan 1 1970
Can be used for cachebreaker, to update the resources on every build
{{build}}
// 1496818748811
Used as Cachebreaker
<link href="layout.css?{{build}}" />
<!-- <link href="layout.css?1496818748811" /> -->
Returns the minutes (from 0-59)
{{date_minutes}}
// 59
Returns the hour (from 0-23)
{{date_hours}}
// 9 (0-23)
Returns the day of the month (from 1-31)
{{date_day}}
// 7 (1-31)
Returns the month (from 1-12)
{{date_month}}
// 6 (1-12)
Returns the year
{{date_year}}
// 2017
MIT