-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgatsby-config.js
91 lines (89 loc) · 2.94 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
const path = require('path');
module.exports = {
siteMetadata: {
siteUrl: `https://state-of-foss.in`,
title: "The State of FOSS in India · CivicDataLab",
description:
"A chronicle of the evolution of the FOSS ecosystem in India, identifying key stakeholders, list out their challenges and recommendations. Supported by Omidyar Network India",
url: "https://state-of-foss.in/", // No trailing slash allowed!
image: "https://state-of-foss.in/images/landing-page-img.png", // Path to your image you placed in the 'static' folder
social: {
twitter: "@StateOfFOSS"
},
},
plugins: [
{
resolve: `gatsby-plugin-scroll-reveal`,
options: {
threshold: 1, // Percentage of an element's area that needs to be visible to launch animation
once: true, // Defines if animation needs to be launched once
disable: false, // Flag for disabling animations
// Advanced Options
selector: '[data-sal]', // Selector of the elements to be animated
animateClassName: 'sal-animate', // Class name which triggers animation
disabledClassName: 'sal-disabled', // Class name which defines the disabled state
rootMargin: '0% 50%', // Corresponds to root's bounding box margin
enterEventName: 'sal:in', // Enter event name
exitEventName: 'sal:out', // Exit event name
}
},
{
resolve: `gatsby-plugin-sitemap`,
options: {}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-2V1FDMQKDM", // Google Analytics / GA
],
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ["/preview/**", "/do-not-track/me/too/"],
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: path.join(__dirname, 'content')
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'fonts',
path: `${__dirname}/src/fonts/`
}
},
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `images`,
// path: path.join(__dirname, `src`, `images`)
// }
// },
'gatsby-transformer-remark',
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'React go',
short_name: 'Reactgo',
start_url: '/',
background_color: '#f7f0eb',
theme_color: '#a2466c',
display: 'standalone',
icon: 'static/images/foss-favicon.png',
},
}
]
};