-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
216 lines (209 loc) · 6.31 KB
/
gatsby-config.js
File metadata and controls
216 lines (209 loc) · 6.31 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
const path = require("path");
const _ = require("lodash");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
// const gatsbyRequiredRules = path.join(
// process.cwd(),
// "node_modules",
// "gatsby",
// "dist",
// "utils",
// "eslint-rules"
// );
module.exports = {
siteMetadata: {
title: "Code Academy Berlin",
description:
"On-campus Coding School in Berlin. Live classes, small groups, 1:1 mentoring in Full-Stack & AI Web Development, Data Science and Machine Learning",
author: "Code Academy Berlin",
keywords: [
"on-campus",
"Bildungsgutschein",
"live classes",
"small groups",
"1:1 mentoring",
"coding academy",
"code bootcamp",
"web development",
"data science",
"data analytics",
],
// siteUrl: "https://silly-unicorn-31e63d.netlify.app",
siteUrl: "https://www.codeacademyberlin.com",
ogImage: `assets/ogImage.png`,
},
plugins: [
"gatsby-theme-material-ui",
"gatsby-plugin-sitemap",
'gatsby-plugin-robots-txt',
"gatsby-plugin-remove-console",
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`, // Needed for dynamic images
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: "https://www.codeacademyberlin.com",
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
gfm: true,
// footnotes: true,
// // blocks: ["h2"], Blocks option value can be provided here as an array.
// excerpt_separator: `<!-- end -->`,
plugins: [
// {
// resolve: "gatsby-remark-relative-images",
// // options: {
// // staticFolderName: "static",
// // },
// },
{
resolve: `gatsby-remark-images`,
options: {
// maxWidth: 800,
},
},
{
resolve: "gatsby-remark-external-links",
options: {
target: "_blank",
rel: "nofollow"
}
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
destinationDir: 'static',
},
},
// {
// resolve: `gatsby-remark-smartypants`,
// options: {
// dashes: `oldschool`,
// },
// },
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/,
},
},
},
// {
// resolve: `gatsby-remark-embed-snippet`,
// options: {
// // Example code links are relative to this dir.
// directory: `${__dirname}/src/code-examples/`,
// },
// },
// `gatsby-remark-autolink-headers`,
// `gatsby-remark-graphviz`, // graphviz before prismjs
// `gatsby-remark-prismjs`,
// `gatsby-remark-katex`,
],
},
},
// {
// resolve: `gatsby-plugin-catch-links`,
// options: {
// // Links are relative to this directory
// excludeRegex: /excluded-link/,
// },
// },
// `gatsby-plugin-glamor`,
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google: [
{
family: "Ubuntu", // 'font-family' property
variants: ["300", "400", "500"],
},
],
selfHosted: [
{
family: "Alenia",
urls: {
woff2: `/src/data/fonts/Alenia.woff2`,
woff: `/src/data/fonts/Alenia.woff`,
ttf: `/src/data/fonts/Alenia.ttf`,
//[format]: '/[filepath]/[filename],
},
//[cssProperty]: 'value',
},
{
family: "Lovelo",
urls: {
otf: `/src/data/fonts/Lovelo_Black.otf`,
woff: `/src/data/fonts/Lovelo_Black.woff`,
ttf: `/src/data/fonts/Lovelo_Black.ttf`,
eot: `/src/data/fonts/Lovelo_Black.eot`,
},
//[cssProperty]: 'value',
},
],
},
// formatAgents: {
// eot: `Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)`,
// ttf: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.8 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.8`,
// woff: `Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; rv:11.0) like Gecko`,
// woff2: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; ServiceUI 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393`,
// },
//formats: ['woff2', 'woff', 'otf', 'ttf'],
//useMinify: true,
usePreload: true,
//usePreconnect: false,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/pages`,
name: `pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/data`,
name: "data",
},
},
{
resolve: "gatsby-plugin-hubspot",
options: {
trackingCode: "8237502",
// respectDNT: true,
productionOnly: true,
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: "https://www.codeacademyberlin.com",
},
},
],
};
// plugins: [
// "gatsby-plugin-react-helmet",
//
// {
// resolve: `gatsby-plugin-hotjar`,
// options: {
// includeInDevelopment: true, // optional parameter to include script in development
// id: 2377880,
// sv: 6,
// },
// },