-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
89 lines (89 loc) · 1.9 KB
/
gatsby-config.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
pathPrefix: '/',
siteMetadata: {
title: `Yuying Wu`,
author: `Yuying Wu`,
description: `个人博客,文字、代码、照片,记录工作和生活`,
copyright: `©2014-${new Date().getFullYear()}`,
siteUrl: `https://wuyuying.com`,
aboutUrl: `/about`,
avatar: 'https://wyy-static.oss-cn-guangzhou.aliyuncs.com/xx/avatar.jpeg',
social: [
{
name: 'RSS',
url: 'https://wuyuying.com/rss.xml',
},
{
name: 'Github',
url: 'https://github.com/YuyingWu',
},
],
nav: [
{
title: 'Home',
link: '/',
},
{
title: '技术',
link: '/categories/tech/',
},
{
title: '食色笔记',
link: '/categories/life/',
},
{
title: '读万卷书',
link: '/categories/reading/',
},
{
title: '行万里路',
link: '/categories/travel/',
},
],
},
flags: { PRESERVE_WEBPACK_CACHE: true },
plugins: [
{
resolve: `gatsby-plugin-valine`,
options: {
appId: `TnIhwy7mhDOYzPGzQYOO1Ngj-gzGzoHsz`,
appKey: `uxHtOYVZuFHeXoWEdl69wjqb`,
avatar: `hide`,
visitor: true,
placeholder: '留下你的评论吧',
meta: ['nick', 'mail']
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-theme-chaton`,
options: {
googleAnalytics: 'UA-74424222-4',
},
},
// {
// resolve: "gatsby-plugin-antd",
// options: {
// style: true,
// },
// },
{
resolve: `gatsby-plugin-material-ui`,
},
{
resolve: 'gatsby-plugin-less',
options: {
javascriptEnabled: true,
},
},
{
resolve: 'gatsby-plugin-static-folders',
options: {
folders: [
'./static',
]
}
}
],
}