/
gatsby-config.js
executable file
·100 lines (98 loc) · 3.07 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
require(`dotenv`).config()
const shouldAnalyseBundle = process.env.ANALYSE_BUNDLE
module.exports = {
siteMetadata: {
// You can overwrite values here that are used for the SEO component
// You can also add new values here to query them like usual
// See all options: https://github.com/LekoArts/gatsby-themes/blob/main/themes/gatsby-theme-jodie/gatsby-config.js
siteTitle: `Xavier Mirabelli-Montan`,
siteTitleAlt: `Xavier Mirabelli-Montan - Lead Fullstack Product Engineer`,
siteHeadline: `Xavier Mirabelli-Montan is a Lead Fullstack Product Engineer`,
siteUrl: `https://xavie.mirmon.co.uk`,
siteDescription: `Xavier Mirabelli-Montan is a Lead Fullstack Product Engineer based in Brighton, UK`,
siteLanguage: `en`,
siteImage: `/Xavie-profile.png`,
author: `@xaviemirmon`,
},
plugins: [
{
resolve: `@lekoarts/gatsby-theme-jodie`,
// See the theme's README for all available options
options: {
navigation: [
{ name: `About`, slug: `/about` },
{ name: `Projects`, slug: `/projects` },
{ name: `CV`, slug: `/cv` },
{ name: `Blog`, slug: `https://blog.xavie.mirmon.co.uk/` },
{ name: `Twitter`, slug: `https://twitter.com/xaviemirmon` },
{ name: `LinkedIn`, slug: `https://www.linkedin.com/in/xavier-mirabelli-montan-5633203b` }
],
},
},
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google2: [
{
family: "Work Sans",
axes: "wght@300..600"
},
],
},
}
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Xavier Mirabelli-Montan Developer`,
short_name: `xaviemirmon`,
description: `Xavier Mirabelli-Montan is a Lead Fullstack Product Engineer based in Brighton, UK`,
start_url: `/`,
background_color: `#ffffff`,
// This will impact how browsers show your PWA/website
// https://css-tricks.com/meta-theme-color-and-trickery/
theme_color: `#b75e09`,
display: `standalone`,
icons: [
{
src: `/icon-square-192x192.png`,
sizes: `192x192`,
type: `image/png`,
}
],
},
},
{
resolve: `gatsby-source-medium`,
options: {
username: `xaviemirmon`,
},
},
`gatsby-plugin-gatsby-cloud`,
{
resolve: `gatsby-source-rss-feed`,
options: {
url: `https://medium.com/feed/xaviemirmon`,
name: `MediumPosts`,
}
},
{
resolve: `gatsby-plugin-remote-images`,
options: {
nodeType: 'MediumPost',
imagePath: 'virtuals.previewImage.imageId',
prepareUrl: url => (`https://miro.medium.com/fit/c/500/333/${url}`),
},
},
shouldAnalyseBundle && {
resolve: `gatsby-plugin-webpack-bundle-analyser-v2`,
options: {
analyzerMode: `static`,
reportFilename: `_bundle.html`,
openAnalyzer: false,
},
},
].filter(Boolean),
}