-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
86 lines (84 loc) · 2.3 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
require('dotenv').config();
module.exports = {
siteMetadata: {
title: `Wendel Freitas`,
description: `Site pessoal e blog sobre desenvolvimento de software, bleeding edge, open source e maluquices extremamente interessantes para aqueles que gostam de aprender e criar coisas novas.`,
author: `@wendelfreitas`,
siteUrl: 'https://wendel.dev'
},
plugins: [
'gatsby-plugin-transition-link',
'gatsby-plugin-eslint',
'gatsby-plugin-styled-components',
`gatsby-plugin-react-helmet`,
// needs to be the first to work with gatsby-remark-images
{
resolve: `gatsby-source-filesystem`,
options: {
name: `uploads`,
path: `${__dirname}/static/assets/img`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/posts`
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: 'gatsby-remark-relative-images-v2',
options: {
name: 'uploads'
}
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
linkImagesToOriginal: false
}
},
`gatsby-remark-lazy-load`,
`gatsby-remark-prismjs`
]
}
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// replace "UA-XXXXXXXXX-X" with your own Tracking ID
trackingId: process.env.GOOGLE_ANALYTICS_ID
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Wendel de Freitas Branco`,
short_name: `wendel.dev`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#dd7e09`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png` // This path is relative to the root of the site.
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`
]
};