-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
121 lines (120 loc) · 3.4 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
// Include environement variables (.env.development)
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
}),
module.exports = {
siteMetadata: {
siteUrl: "https://artfulbytes.com/",
title: "Artful Bytes",
image: "",
author: {
name: `Niklas Nilsson`,
summary: `I'm an embedded systems engineer from Sweden currently working at <a href=https://www.hasselblad.com/">Hasselblad</a>`,
},
description: `A blog about building and programming hardware.`,
social: {
instagram: `artfulbytescom`,
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/blog`,
name: `blog`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/projects`,
name: `projects`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/pages`,
name: `devenv`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`, // Required to find and process images in mdx post
options: {
quality: 80,
showCaptions: false,
maxWidth: 1000,
disableBgImageOnAlpha: true, // To remov blur from transparent pngs
linkImagesToOriginal: false,
backgroundColor: `transparent`,
}
},
{
resolve: `gatsby-remark-autolink-headers`, // Adds ids to headers (for table of contents links)
options: {
offsetY: 104,
icon: false, // Remove the header icon
}
},
{ // Needed for including gifs, mp4, avc, etc...
resolve: `gatsby-remark-copy-linked-files`
}
]
}
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`, // Needed for dynamic images
{
resolve: 'gatsby-plugin-mailchimp', // Newsletter signup
options: {
endpoint: process.env.MAILCHIMP_ENDPOINT
}
},
`react-gist`, // TODO: Replace since it relies on legacy react version
{
resolve: `gatsby-plugin-typography`, // Handles the overall typographic theme of the site
options: {
pathToConfigModule: `src/utils/typography`,
},
},
`typography-theme-github`, // The typography theme used
`prism-react-renderer`, // Code highlighting
`disqus-react`, // Disqus comments
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Artful Bytes`,
short_name: `Artful Bytes`,
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: `#663399`,
display: `minimal-ui`,
icon: `src/images/logo.svg`,
},
},
`gatsby-plugin-react-helmet`, // Seo information
`react-helmet`, // Seo information
],
};