mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-05-11 10:40:19 +08:00
21 lines
485 B
TypeScript
21 lines
485 B
TypeScript
import {searchProPlugin} from "vuepress-plugin-search-pro";
|
|
|
|
export default {
|
|
plugins:[
|
|
searchProPlugin({
|
|
// 索引全部内容
|
|
indexContent: true,
|
|
// 为分类和标签添加索引
|
|
customFields: [
|
|
{
|
|
getter: (page:any) => page.frontmatter.category,
|
|
formatter: "分类:$content",
|
|
},
|
|
{
|
|
getter: (page) => page.frontmatter.tag,
|
|
formatter: "标签:$content",
|
|
},
|
|
],
|
|
}),
|
|
]
|
|
} |