@vuepress-plume/plugin-blog-data
Install
npm install @vuepress-plume/plugin-blog-data
pnpm add @vuepress-plume/plugin-blog-data
yarn add @vuepress-plume/plugin-blog-data
Usage
import { blogDataPlugin } from '@vuepress-plume/plugin-blog-data'
export default {
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>
}