This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
118 lines (117 loc) · 3.9 KB
/
gatsby-config.ts
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
import path from "path";
module.exports = {
graphqlTypegen: true,
// trailingSlash: "never", // Default is always
siteMetadata: {
title: `Martin Berg Alstad's website`,
description: `Martin Berg Alstad's personal website and portfolio`,
lang: `en`,
siteUrl: `https://emberal.github.io/`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Martin Berg Alstad's website`,
short_name: `Martin Berg Alstad`,
description: `Martin Berg Alstad's personal website`,
lang: `en`,
start_url: `/`,
background_color: `#181a1b`,
theme_color: `#9e6ecf`,
display: `standalone`,
icon: `src/images/Martials dog avatar.png`,
localize: [
{
start_url: `/no/`,
lang: `no`,
name: `Martin Berg Alstads hjemmeside`,
short_name: `Martin Berg Alstad`,
description: `Martin Berg Alstad sin personlige hjemmeside.`,
},
],
},
},
`gatsby-plugin-sharp`,
`gatsby-remark-images`,
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 672,
},
},
],
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`, // Needed for dynamic images
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-offline`,
options: {
precachePages: [`/`, `/projects/*`],
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: `https://emberal.github.io/`,
sitemap: `https://emberal.github.io/sitemap/sitemap-index.xml`,
policy: [{ userAgent: `*`, allow: `/` }]
}
},
{
resolve: 'gatsby-plugin-security-txt',
options: {
contact: 'https://emberal.github.io/contact-me',
expires: '2032-10-14T23:59:59z',
canonical: 'https://emberal.github.io/.well-known/security.txt',
languages: 'en, no',
},
},
"react-feather",
{
resolve: 'gatsby-source-filesystem',
options: {
"name": "projects",
"path": path.resolve(`projects`),
},
__key: "pages"
},
{
resolve: 'gatsby-source-filesystem',
options: {
"name": "locale",
"path": path.resolve(`locales`),
}
},
"i18next",
{
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`,
languages: [`en`, `no`],
defaultLanguage: `en`,
fallbackLanguage: 'no',
redirect: true,
siteUrl: `https://emberal.github.io/`,
i18nextOptions: {
interpolation: {
escapeValue: false
},
keySeparator: false,
nsSeparator: false
},
pages: [],
}
},
'gatsby-plugin-postcss',
],
};