-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
99 lines (97 loc) · 2.7 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
const mdxFeed = require('gatsby-mdx/feed')
const configuration = {
// the name of your website
title: 'Josh Crowther',
// the description of the website (eg. what shows on Google)
description: "Josh Crowther's blog",
// a short bio shown at the bottom of your blog posts
// It should complete the sentence: Written by Josh Crowther ...
shortBio: '',
// a longer bio showing on the landing page of the blog
bio: `Software Engineer @ Google - Web Platform advocate, husband, gamer, and dog lover.`,
author: 'Josh Crowther',
githubUrl: 'https://github.com/jshcrowthe/josh-crowther-dev-blog',
// replace this by the url where your website will be published
siteUrl: 'https://josh.crowther.dev',
social: {
// leave the social media you do not want to appear as empty strings
twitter: 'jshcrowthe',
medium: '',
facebook: '',
github: 'jshcrowthe',
linkedin: 'jshcrowthe',
instagram: '',
},
}
module.exports = {
siteMetadata: configuration,
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-mdx',
options: {
extensions: ['.md', '.mdx'],
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 700,
backgroundColor: 'transparent',
showCaptions: true,
},
},
'gatsby-remark-prismjs',
'gatsby-remark-copy-linked-files',
'gatsby-remark-embed-video',
{
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1.0725rem',
},
},
'gatsby-remark-autolink-headers',
'gatsby-remark-smartypants',
{
resolve: '@weknow/gatsby-remark-twitter',
options: {
align: 'center',
},
},
'gatsby-remark-external-links',
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'blog',
path: `${__dirname}/content`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Josh Crowther',
short_name: 'Josh Crowther',
start_url: '/',
background_color: '#001724',
theme_color: '#001724',
display: 'minimal-ui',
icon: 'src/images/icon.png', // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-feed`,
options: mdxFeed,
},
],
}