-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
46 lines (46 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = (themeConfig, ctx) => {
return {
globalLayout: './layouts/GlobalLayout.vue',
extend: '@vuepress/theme-default',
plugins: [
[
'@vuepress/search',
{
searchMaxSuggestions: 10,
test: null
}
],
['@vuepress/active-header-links', false],
require('./plugins/melody'),
require('./plugins/stylus'),
[
'@vuepress/blog', {
directories: [
{
id: 'posts',
dirname: '_posts',
path: '/',
layout: 'Layout',
itemLayout: 'Post',
itemPermalink: themeConfig.permalink || '/:slug'
}
],
frontmatters: [
{
id: 'tags',
keys: ['tag', 'tags'],
path: '/tags/',
layout: 'Tag'
},
{
id: 'categories',
keys: ['category', 'categories'],
path: '/categories/',
layout: 'Category'
}
]
}
]
]
}
}