mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
acording to hope theme move search plugin config to theme config
This commit is contained in:
parent
4cb48ca98a
commit
bd63322058
@ -1,21 +1,6 @@
|
|||||||
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
|
||||||
import { redirectPlugin } from 'vuepress-plugin-redirect'
|
import { redirectPlugin } from 'vuepress-plugin-redirect'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
searchProPlugin({
|
|
||||||
indexContent: true,
|
|
||||||
autoSuggestions: true,
|
|
||||||
customFields: [
|
|
||||||
{
|
|
||||||
getter: (page) => page.frontmatter.category,
|
|
||||||
formatter: "Category: $content",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
getter: (page) => page.frontmatter.tag,
|
|
||||||
formatter: "Tag: $content",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
redirectPlugin({
|
redirectPlugin({
|
||||||
autoLocale: true,
|
autoLocale: true,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -98,6 +98,20 @@ export default hopeTheme({
|
|||||||
sub: true,
|
sub: true,
|
||||||
sup: true,
|
sup: true,
|
||||||
vPre: true,
|
vPre: true,
|
||||||
}
|
},
|
||||||
|
searchPro: {
|
||||||
|
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