-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
104 lines (102 loc) · 2.79 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
const path = require('path');
const rssConfig = require('./rss-plugin-config');
module.exports = {
siteMetadata: {
title: 'Sam Rose',
author: 'Sam Rose',
description:
'Personal blog of Sam Rose, a front-end software engineer who specializes in systems thinking, design tooling, and advocacy.',
siteUrl: 'https://www.samrose.me',
social: {
twitter: '@_samrose3_',
},
},
plugins: [
rssConfig,
{
resolve: 'gatsby-plugin-alias-imports',
options: {
alias: {
'@assets': path.resolve(__dirname, 'src/assets'),
'@components': path.resolve(__dirname, 'src/components'),
'@constants': path.resolve(__dirname, 'src/constants'),
'@helpers': path.resolve(__dirname, 'src/helpers'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@style': path.resolve(__dirname, 'src/style'),
'@utils': path.resolve(__dirname, 'src/utils'),
},
extensions: ['.ts', '.js', '.tsx', '.jsx'],
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-typescript',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
posts: require.resolve('./src/components/BlogPost/BlogPost.tsx'),
default: require.resolve('./src/components/MDXPage/MDXPage.tsx'),
},
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 590,
disableBgImageOnAlpha: true,
linkImagesToOriginal: false,
withWebp: true,
},
},
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'posts',
path: `${__dirname}/src/pages/posts`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'src', 'assets', 'images'),
},
},
{
resolve: 'gatsby-omni-font-loader',
options: {
enableListener: false,
preconnect: ['https://fonts.gstatic.com'],
custom: [
{
name: ['MonoLisa'],
file: '/fonts.css',
},
],
web: [
{
name: ['IBM Plex Sans', 'Inter', 'Fugaz One'],
file:
'https://fonts.googleapis.com/css2?family=Fugaz+One&family=IBM+Plex+Sans:wght@600&family=Inter:wght@400;500&display=swap',
},
],
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `UA-19428169-1`,
},
},
{
resolve: `gatsby-plugin-splitbee`,
options: {
includeInDevelopment: false,
},
},
],
};