-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
139 lines (139 loc) · 4.34 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
module.exports = {
siteMetadata: {
title: `Tom Gooden | Web Development + Design`,
description: `Web Development + Design by Tom Gooden | Waco, Texas`,
siteUrl: `https://tomgooden.net`,
author: `Tom Gooden @good3n`,
twitterUsername: '@good3n',
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/blog`,
},
},
{
resolve: 'gatsby-omni-font-loader',
options: {
mode: 'async',
enableListener: true,
preconnect: ['https://fonts.gstatic.com'],
web: [
{
name: 'Inter',
file: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900',
},
{
name: 'Fira Code',
file: 'https://fonts.googleapis.com/css2?family=Fira+Code:wght@600',
},
],
},
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `tom-gooden-website`,
short_name: `tom-gooden-website`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/assets/images/favicon.png`, // This path is relative to the root of the site.
},
},
// {
// resolve: `gatsby-transformer-remark`,
// options: {
// // CommonMark mode (default: true)
// commonmark: true,
// // Footnotes mode (default: true)
// footnotes: true,
// // Pedantic mode (default: true)
// pedantic: true,
// // GitHub Flavored Markdown mode (default: true)
// gfm: true,
// // Plugins configs
// plugins: [
// `gatsby-remark-relative-images`,
// `gatsby-remark-check-links`,
// {
// resolve: 'gatsby-remark-external-links',
// options: {
// target: '_self',
// rel: 'nofollow',
// },
// },
// {
// resolve: `gatsby-remark-images`,
// options: {
// quality: 70,
// maxWidth: 670,
// wrapperStyle: `display: block;`,
// },
// },
// ],
// },
// },
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://tomgooden.net',
sitemap: 'https://tomgooden.net/sitemap.xml',
policy: [{ userAgent: '*', allow: '/' }],
},
},
// {
// resolve: `gatsby-plugin-advanced-sitemap`,
// options: {
// exclude: [
// `/dev-404-page`,
// `/404`,
// `/404.html`,
// `/offline-plugin-app-shell-fallback`,
// /(\/)?hash-\S*/, // you can also pass valid RegExp to exclude internal tags for example
// ],
// createLinkInHead: true, // optional: create a link in the `<head>` of your site
// addUncaughtPages: true, // optional: will fill up pages that are not caught by queries and mapping and list them under `sitemap-pages.xml`
// },
// },
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-142430836-1',
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
// exclude: ["/preview/**", "/do-not-track/me/too/"],
// Enables Google Optimize using your container Id
// optimizeId: "YOUR_GOOGLE_OPTIMIZE_TRACKING_ID",
// Enables Google Optimize Experiment ID
// experimentId: "YOUR_GOOGLE_EXPERIMENT_ID",
// Set Variation ID. 0 for original 1,2,3....
// variationId: "YOUR_GOOGLE_OPTIMIZE_VARIATION_ID",
// Any additional create only fields (optional)
// sampleRate: 5,
// siteSpeedSampleRate: 10,
// cookieDomain: "example.com",
},
},
],
}