-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
159 lines (159 loc) · 4.48 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
module.exports = {
siteMetadata: {
title: 'Dick Wyn Yong',
description:
'Dick Wyn is a software engineer and content creator. He is a Malaysian living in America and enjoys experimenting with new recipes in the kitchen and geeking out on the latest tech gadgets',
siteUrl: 'https://dickwyn.xyz',
image: 'https://dickwyn.xyz/images/dick-wyn-yong.jpg',
author: 'Dick Wyn Yong',
social: {
twitter: '@dickwyn',
},
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [`${process.env.GA4_TRACKING_ID}`],
gtagConfig: {
anonymize_ip: true,
},
pluginConfig: {
head: true,
respectDNT: true,
},
},
},
`gatsby-plugin-sitemap`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `local-images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/static/images`,
name: `images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/data/blog`,
name: 'posts',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/data/dev-blog`,
name: 'dev-posts',
},
},
{
resolve: `gatsby-transformer-sharp`,
options: {
checkSupportedExtensions: false,
},
},
`gatsby-plugin-sharp`,
`gatsby-plugin-sass`,
`gatsby-plugin-twitter`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
// gatsby-remark-relative-images must go before gatsby-remark-images
{
resolve: `gatsby-remark-relative-images`,
options: {
// [Optional] The root of "media_folder" in your config.yml
// Defaults to "static"
staticFolderName: 'static',
// [Optional] Include the following fields, use dot notation for nested fields
// All fields are included by default
include: ['featuredImage'],
},
},
{
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: 930,
backgroundColor: 'transparent',
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: 'language-',
inlineCodeMarker: null,
aliases: {},
showLineNumbers: true,
noInlineHighlight: false,
languageExtensions: [
{
language: 'superscript',
extend: 'javascript',
definition: {
superscript_types: /(SuperType)/,
},
insertBefore: {
function: {
superscript_keywords: /(superif|superelse)/,
},
},
},
],
prompt: {
user: 'root',
host: 'localhost',
global: false,
},
escapeEntities: {},
},
},
{ resolve: `gatsby-remark-responsive-iframe` },
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Dick Wyn Yong`,
short_name: `Dickwyn`,
start_url: `/`,
background_color: `#000000`,
theme_color: `#c80000`,
display: `minimal-ui`,
icon: `src/images/brand/icon-dark.svg`,
},
},
`gatsby-plugin-material-ui`,
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`IBM Plex Sans\:400,400i,500,500i,700`],
fonts: [`IBM Plex Sans Serif\:400,400i`],
fonts: [`IBM Plex Sans Condensed\:400,600,600i`],
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
exclude: ['/debug'],
},
},
`gatsby-plugin-image`,
`gatsby-plugin-robots-txt`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};