append-date

@vuepress/plugin-append-date

This plugin will append writing date to frontmatter with @vuepress/plugin-git.

Usage

npm i -D @vuepress/plugin-append-date@next
import { appendDatePlugin } from '@vuepress/plugin-append-date'

export default {
  plugins: [appendDatePlugin()],
}

Options

key

  • Type: string

  • Default: "date"

  • Details:

    Frontmatter key to use when appending date.

format

  • Type: "date" | "time" | "full"

  • Default: "date"

  • Details:

    Format of the date value when appending date.