-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
112 lines (111 loc) · 2.73 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
jsxRuntime: "automatic",
siteMetadata: {
siteUrl: "https://www.cannonlock.com",
title: "LockDotCom",
description: `The website you didn't know you needed.`,
author: "Cannon Lock",
image: "/static/images/WebsiteFavicon.png"
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
`gatsby-remark-images`,
"gatsby-plugin-theme-ui",
"gatsby-plugin-sharp",
"gatsby-plugin-image",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-graphql",
options: {
// This type will contain remote schema Query type
typeName: "GitHub",
// This is the field under which it's accessible
fieldName: "github",
// URL to query from
url: "https://api.github.com/graphql",
// HTTP headers
headers: {
// Learn about environment variables: https://gatsby.dev/env-vars
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
},
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"G-LZ8602BHP1",
]
},
},
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: ['Titillium Web', 'Montserrat']
}
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Cannon Lock's Personal Website`,
short_name: `Lock Dot Com`,
start_url: `/index.js`,
display: `minimal-ui`,
icon: `src/static/images/WebsiteFavicon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
default: require.resolve("./src/components/layout/MD_Layout.js")
},
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
backgroundColor: "transparent"
},
},
],
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/static/images/`,
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "icons",
path: `${__dirname}/src/static/icons/`,
},
__key: "icons",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: `blog`,
path: `${__dirname}/src/pages/blog`,
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: `projects`,
path: `${__dirname}/src/pages/projects`,
}
},
],
};