-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
282 lines (282 loc) · 8.69 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
module.exports = {
siteMetadata: {
title: 'Zhilei Zheng',
desc: "Zhilei Zheng is a software engineer",
description: `A fantastic new static site generator.`,
siteUrl: `https://www.zhileiz.com/`,
info: {
name: 'Zhilei Zheng',
title: 'Junior',
titleLink: '@UPenn-NETS',
titleLinkURL: 'https://www.nets.upenn.edu/',
title2: 'Software Engineer',
title2Link: '@Pennlabs',
title2LinkURL: 'https://pennlabs.org/',
intro: "To build scalable, beautiful, and performant software for the web and the mobile world. To tackle all software challenges of tomorrow.",
links: {
github: 'https://github.com/zhileiz',
email: '[email protected]',
linkedin: 'https://www.linkedin.com/in/zhileiz/',
rss: 'https://zhileiz.com/rss.xml'
}
},
chInfo: {
name: '郑智镭',
title: '大三学生',
titleLink: '@UPenn-NETS',
titleLinkURL: 'https://www.nets.upenn.edu/',
title2: '开发者',
title2Link: '@Pennlabs',
title2LinkURL: 'https://pennlabs.org/',
intro: "为网络和移动的世界搭建可伸缩、高颜值、高性能的应用和服务。为一切明天的软件挑战时刻准备着。",
links: {
github: 'https://github.com/zhileiz',
rss: 'https://zhileiz.com/rss.xml',
email: '[email protected]',
linkedin: 'https://www.linkedin.com/in/zhileiz/'
}
},
projects: [
{
title: "PennMobile - Campus Life Assistant App (iOS)",
link:"https://itunes.apple.com/us/app/pennmobile/id944829399?mt=8",
points: [
"The official UPenn app developed by Pennlabs.",
"Implemented laundry room washer/dryer availability lookup feature.",
"Enabled push notifications using Firebase Cloud Messaging.",
"Integrated Mapkit and implemented TF-IDF algorithm for building search.",
]
},
{
title: "Recipublic - Recipe Sharing Platform (Web)",
link: "https://recipublic.herokuapp.com/",
points: [
"Course project inspired by Facebook and Github. Users may update user profile, add friendship, post and browse recipes, fork and edit recipes.",
"Used Node JS and AWS DynamoDB for the backend.",
"Implemented user authentication with password encryption.",
"Implemented pagerank algorithm for friend recommendations.",
"Integrated Amazon S3 for storing user avatar and recipe pictures."
]
}
],
chprojects: [
{
title: "PennMobile - 宾大官方校园生活app(iOS)",
link:"https://itunes.apple.com/us/app/pennmobile/id944829399?mt=8",
points: [
"作为Pennlabs软件开发组iOS工程师开发此项目",
"实现了学校所有宿舍洗衣房洗衣机/烘衣机再App内状态查询的功能",
"用Firebase Cloud Messaging实现了向App发送远程通知",
"整合Mapkit功能并利用TF-IDF算法实现学校教学楼位置信息查询",
]
},
{
title: "Recipublic - 食谱分享平台(Web)",
link: "https://recipublic.herokuapp.com/",
points: [
"课程期末项目,模仿Facebook和Github。用户可更新个人信息, 加好友, 浏览或添加食谱, 及fork并编辑其他用户的食谱。",
"用Node JS和AWS DynamoDB数据库作为项目后端。",
"实现了加密后的用户登陆验证。",
"实现了Pagerank算法用于好友及内容推荐,并在Amazon EMR上运行。",
"整合了Amazon S3用于存储用户头像和图片内容。"
]
}
]
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: "img",
path: `${__dirname}/src/images`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: "gallery",
path: `${__dirname}/src/gallery`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: "projectimgs",
path: `${__dirname}/src/projectImgs`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: "blog",
path: `${__dirname}/src/posts`
}
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`Chivo`,
`Muli`
]
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-plugin-hotjar`,
options: {
id: 1009734,
sv: 6
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-125566905-1"
},
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 600,
linkImagesToOriginal: false,
sizeByPixelDensity: true
},
},
"gatsby-remark-copy-linked-files",
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
aliases: {},
},
},
`gatsby-remark-katex`,
{
resolve: `gatsby-remark-autolink-headers`,
options: {
offsetY: `20`,
},
}
],
},
},
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-feed`,
options: {
query: `
{
site {
siteMetadata {
title
description
siteUrl
site_url: siteUrl
}
}
}
`,
feeds: [
{
serialize: ({ query: { site, allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => {
return Object.assign({}, edge.node.frontmatter, {
description: edge.node.html,
url: site.siteMetadata.siteUrl + edge.node.frontmatter.link,
guid: site.siteMetadata.siteUrl + edge.node.frontmatter.link,
});
});
},
query: `
{
site {
siteMetadata {
title
description
siteUrl
site_url: siteUrl
}
}
allMarkdownRemark(
sort: {order: DESC, fields: [frontmatter___date]},
filter: {
frontmatter: {
published: {eq: true}
lang: {eq: "en"}
}
})
{
edges {
node {
excerpt
html
frontmatter {
title
date
link
}
}
}
}
}
`,
output: "/rss.xml",
},
{
serialize: ({ query: { site, allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => {
return Object.assign({}, edge.node.frontmatter, {
description: edge.node.html,
url: site.siteMetadata.siteUrl + edge.node.frontmatter.link,
guid: site.siteMetadata.siteUrl + edge.node.frontmatter.link,
});
});
},
query: `
{
site {
siteMetadata {
title
description
siteUrl
site_url: siteUrl
}
}
allMarkdownRemark(
sort: {order: DESC, fields: [frontmatter___date]},
filter: {
frontmatter: {
published: {eq: true}
lang: {eq: "ch"}
}
})
{
edges {
node {
excerpt
html
frontmatter {
title
date
link
}
}
}
}
}
`,
output: "/ch-rss.xml",
},
],
},
},
],
}