-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
120 lines (119 loc) · 2.98 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
module.exports = {
pathPrefix: "/fiqus-web-front",
siteMetadata: {
siteUrl: "https://www.fiqus.coop",
title: "fiqus-web",
menuLinks: [
/*{
name:"Home",
link:"/"
},*/
{
name:"Servicios",
link:"/servicios"
},
{
name:"Cultura",
link:"/cultura"
},
{
name:"Labs",
link:"/labs"
},
{
name:"Blog",
link:"/blog"
}/*,
{
name:"Articles",
link:"/articles"
}*/
]
},
plugins: [
"gatsby-plugin-styled-components",
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
"gatsby-plugin-mdx",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-plugin-anchor-links",
options: {
offset: -100
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1500,
withWebp: true,
showCaptions: true,
quality: 100,
},
},
],
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/content/posts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `labs`,
path: `${__dirname}/src/content/labs`,
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/layout/PageWrapper`),
},
},
// It's really important that `gatsby-plugin-react-intl` is listed AFTER `gatsby-plugin-layout`
{
resolve: `gatsby-plugin-react-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/content/intl`,
// supported language
languages: [`es`,`en`],
// language file path
defaultLanguage: `es`,
// option to redirect to `/es` when connecting `/`
redirect: true,
// option for use / as defaultLangauge root path. if your defaultLanguage is `ko`, when `redirectDefaultLanguageToRoot` is true, then it will not generate `/ko/xxx` pages, instead of `/xxx`
redirectDefaultLanguageToRoot: false,
// paths that you don't want to genereate locale pages, example: ["/dashboard/","/test/**"], string format is from micromatch https://github.com/micromatch/micromatch
ignoredPaths: [],
// option to fallback to the defined language instead of the `defaultLanguage` if the user langauge is not in the list
fallbackLanguage: `es`,
},
},
],
};