-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
143 lines (141 loc) · 3.76 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
require('dotenv').config();
module.exports = {
siteMetadata: {
title: `Romain DARY`,
siteUrl: `https://romain.dary.io`,
description: `Romain DARY is a digital architect, developer advocate, senior engineer, and occasional
designer. He builds quality projects that focus on customer value with an high performance perspective.
He lives today in Paris, France.`,
keywords: [
'architect',
'developer',
'designer',
'opensource',
'tech addict',
'personal website',
],
author: `@merlindorin`,
social: {
website: "https://romain.dary.io",
twitter: "https://twitter.com/iam_merlin",
linkedin: "https://fr.linkedin.com/in/romaindary",
github: "https://github.com/merlindorin",
instagram: "https://www.instagram.com/iam_merlin",
medium: "https://medium.com/@iam_merlin",
keybase: "https://keybase.io/merlindorin",
},
},
plugins: [
{
resolve: `gatsby-source-github-api`,
options: {
// token: required by the GitHub API
token: process.env.GITHUB_PERSONAL_TOKEN,
// GraphQLquery: defaults to a search query
graphQLQuery: `
query {
repository(owner:"merlindorin", name:"website") {
issues(last:20, states:OPEN, labels:["post"]) {
edges {
node {
title
body
url
labels(first:5) {
edges {
node {
name
}
}
}
}
}
}
}
}
`,
}
},
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/Layout`)
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-139414063-1",
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: "markdown-pages",
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
tableOfContents: {
heading: null,
maxDepth: 6,
},
plugins: [
`gatsby-remark-autolink-headers`,
`gatsby-remark-reading-time`,
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 590,
},
},
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Romain DARY Website`,
short_name: `website`,
start_url: `/`,
icon: `src/images/logo.png`,
background_color: `#f7f0eb`,
theme_color: `#014fb0`,
display: `standalone`,
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /svgs/, // See below to configure properly
},
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
{
resolve: 'gatsby-plugin-offline',
options: {
navigateFallbackWhitelist: [],
},
},
`gatsby-plugin-sitemap`
],
}