@vuepress-plume/plugin-blog-data
v1.0.0-rc.72
Published
The Plugin for VuePress 2 - blog data
Downloads
39
Readme
@vuepress-plume/plugin-blog-data
Install
npm install @vuepress-plume/plugin-blog-data
# or
pnpm add @vuepress-plume/plugin-blog-data
# or
yarn add @vuepress-plume/plugin-blog-data
Usage
// .vuepress/config.[jt]s
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>
}