-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
executable file
·161 lines (158 loc) · 3.85 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
156
157
158
159
160
161
const adapter = require("gatsby-adapter-netlify").default;
const path = require("path");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
adapter: adapter(),
headers: [
{
source: `*`,
headers: [
{
key: `Referrer-Policy`,
value: `strict-origin-when-cross-origin`,
},
],
},
],
siteMetadata: {
siteUrl: `https://queen.raae.codes`,
siteName: `Queen Raae`,
siteTagline: `Sailing the high seas of the World Wide Web`,
siteDescription: `Ahoy, seasoned JavaScript developers and daring dev pirates! Join our swashbuckling crew as we embark on thrilling treasure hunts unraveling the secrets of HTML, CSS, and JavaScript, all while having a blast!`,
siteLang: `en`,
siteSocialImage: `/raae.jpg`,
siteSocialImageAlt:
"Queen Raae holding a laptop in front of her gallery wall",
siteTwitterCreator: "@raae",
siteSocialMedia: [
"https://github.com/queen-raae",
"https://twitter.com/raae",
"https://www.youtube.com/QueenRaae",
],
},
plugins: [
{
resolve: "local-source-posts",
options: {
basePath: "/posts",
},
},
{
resolve: "local-source-talks",
options: {
basePath: "/talks",
},
},
{
resolve: "local-source-landing",
options: {
basePath: "",
},
},
{
resolve: "local-source-testimonials",
options: {},
},
`gatsby-transformer-yaml`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-copy-linked-files`,
},
{
resolve: `gatsby-remark-prismjs`,
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
linkImagesToOriginal: false,
},
},
{
resolve: `@raae/gatsby-remark-oembed`,
options: {
providers: {
// Important to exclude providers
// that adds js to the page.
// If you do not need them.
exclude: ["Reddit", "Instagram", "Twitter", "Flickr"],
},
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
},
],
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`@raae/gatsby-plugin-let-it-snow`,
`local-extension-og-images`,
`local-plugin-feed`,
{
resolve: `@raae/gatsby-plugin-fathom`,
options: {
site: `DIFBAEOT`,
includedDomains: `queen.raae.codes`,
},
},
`gatsby-plugin-postcss`,
{
resolve: `gatsby-plugin-react-svg`,
options: {
rule: {
include: /\-50\.svg$/,
},
},
},
{
resolve: "local-plugin-redirects",
options: {
path: path.join(__dirname, "redirects.json"),
},
},
{
resolve: "gatsby-plugin-sitemap",
options: {
query: `
{
site {
siteMetadata {
siteUrl
}
}
allSitePage {
nodes {
path
pageContext
}
}
}`,
filterPages: (page, excludedRoute) => {
console.log(
page.path,
excludedRoute,
Boolean(excludedRoute === page.path)
);
const isTagArchive = Boolean(page.pageContext.tagLabel);
const isExclude = excludedRoute === page.path;
return isTagArchive || isExclude;
},
excludes: [
"/posts/preferences/",
"/posts/welcome/",
"/posts/reminders/",
"/search/[...term]/",
],
},
},
],
trailingSlash: "always",
};