mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-13 09:25:49 +00:00
according to new them version move search plugin config to theme config
This commit is contained in:
parent
3c885062ae
commit
a63a723b1f
@ -1,10 +1,8 @@
|
|||||||
import { defineUserConfig } from 'vuepress'
|
import { defineUserConfig } from 'vuepress'
|
||||||
import meta from './config/meta'
|
import meta from './config/meta'
|
||||||
import theme from './config/theme'
|
import theme from './config/theme'
|
||||||
import plugins from './config/plugins'
|
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
...meta,
|
...meta,
|
||||||
theme,
|
theme,
|
||||||
plugins,
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,18 +0,0 @@
|
|||||||
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",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
]
|
|
||||||
@ -53,4 +53,20 @@ export default hopeTheme({
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
plugins: {
|
||||||
|
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