/
gatsby-config.js
81 lines (80 loc) · 2.4 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
require('dotenv').config({
path: '.env',
});
module.exports = {
siteMetadata: {
homeTitle: `Xudong's Homepage`,
description: `wooxudong's personal website. I write blogs regarding film, tech and all random stuff.`,
siteUrl: `https://www.wooxudong.com`,
blog: {
title: `The Neverland`,
slogan: `我们无惧看透痛苦与距离`,
description: `All that is solid melts into air, all that is holy is profaned, and man is at last compelled to face with sober senses his real conditions of life, and his relations with his kind.`,
},
portfolio: {
title: 'The Kaleidoscope',
slogan:
'那些与时代太过于一致的人,那些在每一个方面都完美地附着于时代的人,不是当代的人;这恰恰是因为他们无法目睹时代;他们无法坚守自身对时代的凝视。',
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `img`,
path: `${__dirname}/static/image`,
},
},
{
resolve: `gatsby-source-prismic-graphql`,
options: {
repositoryName: process.env.PRISMIC_REPOSITORY_NAME,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
previews: false,
pages: [
{
type: 'Blogpost',
match: '/blog/:uid',
component: require.resolve(
'./src/components/templates/blogTemplate.js'
),
},
{
type: 'Portfolioitem',
match: '/portfolio/:uid',
component: require.resolve(
'./src/components/templates/portfolioTemplate.js'
),
},
],
sharpKeys: [/image|photo|picture/, 'thumbnail'],
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-prismjs`,
},
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Xudong's Personal Website`,
short_name: `wooxudong`,
description: `Xudong's personal website capturing life in film, technology and etc.`,
lang: `en`,
display: `standalone`,
icon: `static/image/icons/favicon.png`,
start_url: `/`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-material-ui`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
],
};