-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
121 lines (121 loc) · 3.67 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
module.exports = {
siteMetadata: {
image: "profile.jpg",
description: `My personal writings on code, music and more.`,
title: `Christian Kopač - Code, music and more.`,
url: "https://www.christiankopac.com",
author: `Christian Kopač`,
twitterUsername: "@teatang",
titleTemplate: "%s · Christian Kopač",
},
plugins: [
{
resolve: `gatsby-plugin-netlify`,
options: {
headers: {}, // option to add more headers. `Link` headers are transformed by the below criteria
allPageHeaders: [], // option to add headers for all pages. `Link` headers are transformed by the below criteria
mergeSecurityHeaders: true, // boolean to turn off the default security headers
mergeLinkHeaders: true, // boolean to turn off the default gatsby js headers
mergeCachingHeaders: true, // boolean to turn off the default caching headers
transformHeaders: (headers, path) => headers, // optional transform for manipulating headers under each path (e.g.sorting), etc.
generateMatchPathRewrites: true, // boolean to turn off automatic creation of redirect rules for client only paths
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/content/blog/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `music`,
path: `${__dirname}/content/music/`,
ignore: [`**/\.*`], // ignore files starting with a dot
},
},
// {
// resolve: `gatsby-transformer-mdx-content-pages`,
// options: {
// sourceInstanceName: `blog`,
// defaultTemplate: `post`,
// },
// },
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
default: require.resolve(`./src/components/Layout.tsx`),
},
extensions: [".mdx", ".md"],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-smartypants`,
],
},
},
`gatsby-plugin-theme-ui`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/, // See below to configure properly
},
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
quality: 80,
backgroundColor: `transparent`,
formats: ["auto", "webp", "avif"],
placeholder: "blurred",
tracedSVGOptions: {},
blurredOptions: {},
jpgOptions: {},
pngOptions: {},
webpOptions: {},
avifOptions: {},
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Christian Kopac's personal website`,
short_name: `CK`,
start_url: `/`,
background_color: `#1b1b1b`,
theme_color: `#F56542`,
display: `minimal-ui`,
icon: `src/images/ck-icon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-image`,
],
}