-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
153 lines (152 loc) · 3.91 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
const website = require('./website-config');
module.exports = {
siteMetadata: {
siteUrl: website.url,
banner: website.logo,
defaultTitle: website.defaultTitle,
titleTemplate: website.titleTemplate,
description: website.description,
headline: website.headline,
author: website.author,
siteLanguage: website.siteLanguage,
social: website.social,
},
plugins: [
`gatsby-plugin-remove-trailing-slashes`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-180334181-1',
head: false,
anonymize: true,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/uploads`,
name: `uploads`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/blog`,
name: `blog`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/demos`,
name: `demos`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/images`,
name: `images`,
},
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
// Headings and large font
family: `Montserrat`,
variants: [`400`, `700`],
subsets: [`latin-ext`],
},
{
// Body text
family: `Roboto`,
variants: [`400`, `400i`, `500`, `700`],
subsets: [`latin-ext`],
},
{
family: 'DM Serif Text',
variants: ['400', '400i'],
subsets: ['latin-ext'],
},
],
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: `${__dirname}/src/images`,
},
},
},
// Including in your Gatsby plugins will transform any paths in your frontmatter
`gatsby-plugin-netlify-cms-paths`,
{
resolve: `gatsby-remark-images`,
options: {
backgroundColor: `transparent`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
// Including in your Remark plugins will transform any paths in your markdown body
`gatsby-plugin-netlify-cms-paths`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 630,
showCaptions: true,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
showLineNumbers: true,
},
},
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
// When using mdx reading time must be outside remark plugins to work
`gatsby-remark-reading-time`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-netlify-cms`,
{
resolve: `gatsby-plugin-styled-components`,
options: {
displayName: process.env.NODE_ENV !== 'production',
},
},
`gatsby-plugin-sitemap`,
{
resolve: 'gatsby-plugin-manifest',
options: {
name: website.name,
short_name: website.shortName,
description: website.description,
background_color: website.backgroundColor,
theme_color: website.themeColor,
display: 'standalone',
icon: website.favicon,
},
},
//`gatsby-plugin-offline`,
// Removed due to content flash bug with gatsby-plugin-offline
// (https://github.com/gatsbyjs/gatsby/issues/11006)
`gatsby-plugin-remove-serviceworker`,
],
};