-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.js
48 lines (43 loc) · 1.05 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
47
48
module.exports = (themeConfig, ctx) => {
const pagination = {
lengthPerPage: 10,
}
const blogOptions = {
directories: [
{
id: 'post',
dirname: 'posts',
path: '/',
// layout: 'IndexPost', defaults to `Layout.vue`
itemLayout: 'Post',
itemPermalink: '/:year/:month/:day/:slug',
frontmatter: { title: '首页' },
},
],
frontmatters: [
{
id: "tags",
keys: ['tags'],
path: '/tags/',
//layout: 'Tags', //defaults to `FrontmatterKey.vue`
frontmatter: { title: '分类检索文章' },
},
{
id: "categories", // 再 Vue 实例中的名称
keys: ['category'],
path: '/categories/',
//layout: 'Categories', //defaults to `FrontmatterKey.vue`
frontmatter: { title: '分类检索文章' },
},
]
}
const plugins = [
['@vuepress/medium-zoom', true],
['@vuepress/blog', blogOptions],
['@vuepress/last-updated']
]
const config = {
plugins
}
return config
}