Files
vuepress/packages/@vuepress/plugin-last-updated
2018-08-15 23:45:50 +08:00
..
2018-08-10 12:01:29 +08:00
2018-08-15 23:45:50 +08:00
2018-08-12 05:52:55 +08:00
2018-08-12 20:54:03 +08:00

@vuepress/plugin-last-updated

last-updated plugin for vuepress

Note that this plugin has been included in the core.

Options

transformer

  • Type: function
  • Default: undefined

By default, this plugin produces a 13-bit timestamp for each page, you can also pass in a transformer to convert it to any format that you want.

const timeago = require("timeago.js");

module.exports = {
  plugins: [
    [ 
      'last-updated',
      { transformer: timeago.format }
    ]
  ]
}