-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
153 lines (151 loc) · 3.7 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
let activeEnv =
process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
console.log(`Using environment config: '${activeEnv}'`)
require("dotenv").config({
path: `.env.${activeEnv}`,
})
module.exports = {
siteMetadata: {
title: "nashvail.me",
author: "Nash Vail",
titleTemplate: "%s . Nash Vail",
description: "Words, pictures and code",
siteUrl: "https://nashvail.me",
keywords: [
"nash",
"vail",
"tutorial",
"code",
"javascript",
"css",
"web",
"html",
"courses",
"illustration",
"design",
"philosophy",
"life",
],
social: {
twitter: "@nashvail",
},
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-66801145-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/"],
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
},
},
{
resolve: `gatsby-plugin-hotjar`,
options: {
id: 1152714,
sv: 6
}
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-remark`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-transformer-remark`,
`gatsby-transformer-json`,
`gatsby-plugin-svgr`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/src/pages/`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Nashvail.me`,
short_name: `Nashvail.me`,
start_url: `/`,
icon: `src/assets/icon.png`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-embed-video`,
options: {
width: 800,
related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
noIframeBorder: true, //Optional: Disable insertion of <style> border: 0
},
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
tracedSVG: true,
showCaptions: true,
},
},
{
resolve: "@weknow/gatsby-remark-twitter",
options: {
align: "center",
},
},
{
resolve: "gatsby-remark-prismjs",
options: {
inlineCodeMarker: "÷",
showLineNumbers: false,
},
},
`gatsby-remark-static-images`,
{
resolve: "@weknow/gatsby-remark-codepen",
options: {
theme: "dark",
height: 400,
},
},
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `./src/data/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
],
}