Skip to content

append-date

@vuepress/plugin-append-date

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

Usage

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

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

Options

keystring
Default"date"

Frontmatter key to use when appending date.

format"date" | "time" | "full"
Default"date"

Format of the date value when appending date:

  • "date": YYYY-MM-DD format
  • "time": HH:MM:SS format
  • "full": YYYY-MM-DD HH:MM:SS format

MIT Licensed