-
Notifications
You must be signed in to change notification settings - Fork 8
/
gatsby-config.js
94 lines (93 loc) · 2.41 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
siteMetadata: {
title: `Corona Freebies`,
description: `One place to look for free stuff during corona pandemic`,
author: `Atul Yadav`,
},
plugins: [
`gatsby-plugin-emotion`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint: 'https://now.us19.list-manage.com/subscribe/post?u=59dd30b3b6b0af283567d59ea&id=df7489f988', // add your MC list endpoint here; see instructions below
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `src/posts/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `src/images/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `postimages`,
path: `src/posts/`,
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`, //it processes images in markdown so they can be used in the production build.
options: {
maxWidth: 1000,
},
},
],
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: "UA-110990520-2",
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `CoronaFreebies`,
short_name: `CoronaFreebies`,
start_url: `/`,
background_color: `#6b37bf`,
theme_color: `#6b37bf`,
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: `standalone`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `src/pages/`,
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
],
}