-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (47 loc) · 1.14 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
module.exports = (options, { themeConfig }) => {
return {
plugins: [
['@vuepress/blog', {
directories: [
{
id: 'post', // inject pid into each post.vue
dirname: '_test',
// dirname: '_post',
path: '/',
itemPermalink: '/post/:year/:month/:day/:slug.html',
pagination: {
perPagePosts: 2,
},
},
],
globalPagination: {
lengthPerPage: 5
},
frontmatters: [
{
id: "tag",
keys: ['tag', 'tags'],
path: '/tag/',
// layout: 'Tag',
frontmatter: { title: 'Tag' },
// itemlayout: 'Tag',
pagination: {
perPagePosts: 10
}
},
{
id: "category",
keys: ['category', 'categories'],
path: '/categories/',
// layout: 'Tag',
frontmatter: { title: 'Category' },
// itemlayout: 'Tag',
pagination: {
perPagePosts: 10
}
},
]
}],
]
}
}