mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
move plugin config in separate file
This commit is contained in:
parent
b846f6273a
commit
94e39eb098
18
.vuepress/config/plugins.js
Normal file
18
.vuepress/config/plugins.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
||||||
|
|
||||||
|
export default [
|
||||||
|
searchProPlugin({
|
||||||
|
indexContent: true,
|
||||||
|
autoSuggestions: true,
|
||||||
|
customFields: [
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.category,
|
||||||
|
formatter: "Category: $content",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.tag,
|
||||||
|
formatter: "Tag: $content",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user