forked from impuls-e/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
executable file
·131 lines (122 loc) · 3.45 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
const config = require("./data/config")
module.exports = {
siteMetadata: {
siteTitle: config.siteTitle,
siteDescription: config.siteDescription,
siteTitleShort: config.siteTitleShort,
siteUrl: config.siteUrl, // No trailing slash allowed!
siteImage: config.siteImage, // Path to your image you placed in the 'static' folder
siteIcon: config.siteIcon,
siteRss: config.siteRss,
themeColor: config.themeColor,
backgroundColor: config.backgroundColor,
author: config.author,
siteTwitter: config.siteTwitter,
siteGoogleAnalyticsID: config.siteGoogleAnalyticsID,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content/`,
},
},
{
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: config.siteGoogleAnalyticsID,
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-mdx`,
{
resolve: "gatsby-plugin-manifest",
options: {
name: config.siteTitle,
short_name: config.siteTitleShort,
description: config.siteDescription,
start_url: "/",
background_color: config.backgroundColor,
theme_color: config.themeColor,
display: "standalone",
icon: config.siteIcon,
},
},
{
resolve: "gatsby-plugin-html-attributes",
options: {
lang: "pt-BR",
},
},
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: ["Inconsolata:400,600,900"],
},
},
},
`gatsby-plugin-advanced-sitemap`,
`gatsby-background-image`,
{
resolve: "gatsby-plugin-extract-schema",
options: {
dest: `${__dirname}/path/to/schema.json`,
},
},
`gatsby-plugin-next-seo`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: config.siteUrl,
sitemap: `${config.siteUrl}/sitemap.xml`,
env: {
development: {
policy: [{ userAgent: "*", disallow: ["/"] }],
},
production: {
policy: [{ userAgent: "*", allow: "/" }],
},
},
},
},
{
resolve: `gatsby-plugin-scroll-reveal`,
options: {
threshold: 0.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
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-anchor-links`,
`gatsby-plugin-styled-components`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/,
},
},
},
],
}