2023-11-21 02:36:29 +08:00
..
2023-07-29 03:44:14 +08:00
2023-11-21 02:36:29 +08:00
2023-02-15 01:00:49 +08:00

@vuepress-plume/vuepress-plugin-blog-data

Install

yarn add @vuepress-plume/vuepress-plugin-blog-data

Usage

// .vuepress/config.js
const { blogDataPlugin } = require('@vuepress-plume/vuepress-plugin-blog-data')
module.exports = {
  //...
  plugins: [
    blogDataPlugin()
  ]
  // ...
}

Options

interface BlogDataPluginOptions {
  include?: string | string[]
  exclude?: string | string[]
  sortBy?: 'createTime' | false | (<T>(prev: T, next: T) => boolean)
  excerpt?: boolean
  extendBlogData?: <T = any>(page: T) => Record<string, any>
}