-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
146 lines (144 loc) · 4.3 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
})
module.exports = {
siteMetadata: {
siteUrl: `https://capecodmakers.org`,
title: 'Cape Cod Makers',
description: '',
author: 'ccmakers',
authorLink: 'https://github.com/ccmakers',
socialMediaLinks: [
{ name: 'Facebook', url: 'https://www.facebook.com/CapeCodMakers' },
{ name: 'LinkedIn', url: 'http://www.linkedin.com/company/cape-cod-makers-inc-' },
{ name: 'Twitter', url: 'https://twitter.com/capecodmakers' }
],
author: `@ccmakers`,
},
plugins: [
`gatsby-plugin-sitemap`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-yaml`,
`gatsby-plugin-use-query-params`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/content/posts`,
name: 'posts',
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
// This lets you set up language aliases. For example,
// setting this to '{ sh: "bash" }' will let you use
// the language "sh" which will highlight using the
// bash highlighter.
aliases: {},
showLineNumbers: false,
noInlineHighlight: false,
},
},
`gatsby-remark-copy-linked-files`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 740,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-autolink-headers`,
]
}
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-emotion`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#0093D0`,
theme_color: `#0093D0`,
display: `minimal-ui`,
icon: `src/images/ccmakers-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-web-font-loader`,
options: {
google: {
families: ['Open Sans:300,300i,400,400i,700,700i', 'Lora:300,300i,400,400i,700,700i']
}
}
},
`gatsby-plugin-catch-links`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-136958368-1",
// Puts tracking script in the head instead of the body
head: false,
respectDNT: true
},
},
{
resolve: 'gatsby-source-sanity',
options: {
projectId: process.env.SANITY_PROJECT_ID,
dataset: process.env.SANITY_DATASET,
token: process.env.MY_SANITY_TOKEN,
},
},
{
resolve: 'gatsby-source-google-spreadsheets',
options: {
spreadsheetId: '1Jxz6rslfLS-aQDo-wt7jX8fZ8NjHerPy7o2bCgNc72M',
credentials: {
type: 'service_account',
project_id: process.env.G_PROJECT_ID,
private_key_id: process.env.G_PRIVATE_KEY_ID,
private_key: process.env.G_PRIVATE_KEY.replace(/(\\r)|(\\n)/g, '\n'),
client_email: process.env.G_CLIENT_EMAIL,
client_id: '',
auth_uri: 'https://accounts.google.com/o/oauth2/auth',
token_uri: 'https://oauth2.googleapis.com/token',
auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs',
client_x509_cert_url: `https://www.googleapis.com/robot/v1/metadata/x509/${process.env.G_PROJECT_ID}%40appspot.gserviceaccount.com`,
},
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
'gatsby-plugin-offline',
],
mapping: {
"MarkdownRemark.frontmatter.author": `AuthorsYaml.id`,
},
}