-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
95 lines (94 loc) · 2.65 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
plugins: [`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/intl`,
// supported language
languages: [`en`, `tr`, `zh`, `ja`],
// language file path
defaultLanguage: `en`,
// option to redirect to `/en` when connecting `/`
redirect: true,
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Utku Ege Tuluk - Portfolio`,
short_name: `Portfolio`,
description: `This is the page for my portfolio.`,
lang: `en`,
start_url: `/en/`,
background_color: `#F8C053`,
theme_color: `#F8C053`,
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: `standalone`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
localize: [
{
start_url: `/tr/`,
lang: `tr`,
name: "Utku Ege Tuluk - Portfolyo",
short_name: `Portfolyo`,
description: `Portfolyom için websitesi.`,
},
{
start_url: `/zh/`,
lang: `zh`,
name: "陆胜 - 投资组合",
short_name: `投资组合`,
description: `是一个包括我的投资组合的网站。`,
},
{
start_url: `/ja/`,
lang: `ja`,
name: "陆胜 - 投资组合",
short_name: `投资组合`,
description: `是一个包括我的投资组合的网站。`,
}
],
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// replace "UA-XXXXXXXXX-X" with your own Tracking ID
trackingId: "UA-144501573-1",
},
},
`gatsby-plugin-transition-link`,
`gatsby-transformer-yaml`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/data`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`
]
}