Files
vuepress/packages/@vuepress/plugin-last-updated
2018-10-10 14:02:56 +08:00
..
2018-09-27 13:33:31 +08:00
2018-10-10 14:02:56 +08:00

@vuepress/plugin-last-updated

last-updated plugin for vuepress

Note that this plugin has been included in the core.

Usage

module.exports = {
  plugins: ['@vuepress/last-updated'] 
}

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 }
    ]
  ]
}