-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
155 lines (154 loc) · 4.09 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title_en: 'A tribute to Bruce Willis',
title_da: 'En hyldest til Bruce Willis',
description_en: `This page is celebrating one of Hollywood's Greatest Movie Stars.`,
description_da: `Denne side fejrer en af Hollywood's største filmstjerner.`,
siteUrl: 'https://bruce-willis.rocks',
author: 'Lars Ejaas',
logo: '/logo.png',
right_en: 'All rights reserved Lars Ejaas. Please contact me directly to get my consent before using any content from this page',
right_da: 'Alle rettigheder forbeholdt Lars Ejaas. Please contact me directly to get my consent before using any content from this page',
seo_image_en: '/SoMe_english.png',
seo_image_da: '/SoMe_dansk.png'
},
plugins: [
'gatsby-plugin-react-helmet',
`gatsby-plugin-image`,
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
`gatsby-plugin-brotli`,
`gatsby-plugin-preact`,
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /\.inline\.svg$/
}
}
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`,
languages: [`en`, `da`],
redirect: false,
siteUrl: 'https://bruce-willis.rocks', //to be changed,
defaultLanguage: `da`,
// you can pass any i18next options
// pass following options to allow message content as a key
i18nextOptions: {
lowerCaseLng: true,
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
keySeparator: ".",
nsSeparator: ":",
},
pages: [
{
matchPath: "/:lang/",
getLanguageFromPath: true,
excludeLanguages: ["da"],
}
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/locales`,
name: `locale`,
},
},
{
resolve: 'gatsby-plugin-styled-components',
options: {
pure: true,
displayName: false
}
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.inline\.svg$/,
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Bruce Willis',
short_name: 'Bruce Willis',
start_url: '/',
background_color: '#080705',
theme_color: '#7c6f6c',
display: 'standalone',
orientation: `portrait`,
icon: `src/images/favicon.png`,
icons: [
{
src: `../icons/icon-48x48.png`,
sizes: `48x48`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-72x72.png`,
sizes: `72x72`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-96x96.png`,
sizes: `96x96`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-144x144.png`,
sizes: `144x144`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-192x192.png`,
sizes: `192x192`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-256x256.png`,
sizes: `256x256`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-384x384.png`,
sizes: `384x384`,
type: `image/png`,
purpose: `maskable any`
},
{
src: `../icons/icon-512x512.png`,
sizes: `512x512`,
type: `image/png`,
purpose: `maskable any`
},
],
cache_busting_mode: 'none'
},
},
],
}