-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
101 lines (101 loc) · 2.3 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
module.exports = {
siteMetadata: {
siteUrl: 'https://nikcub.me',
title: 'Nik Cubrilovic',
author: 'Nik Cubrliovic',
description: 'A weblog by Nik Cubrilovic',
twitter: 'nikcub',
social: [
{
name: 'twitter',
url: 'https://twitter.com/nikcub',
},
{
name: 'github',
url: 'https://github.com/nc9',
},
],
},
mapping: { 'Mdx.fields.featuredImage': 'File.absolutePath' },
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-react-helmet-canonical-urls',
options: {
siteUrl: 'https://nikcub.me',
// noTrailingSlash: true,
},
},
'gatsby-plugin-emotion',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-plugin-react-helmet',
'gatsby-plugin-twitter',
'gatsby-plugin-theme-ui',
'gatsby-transformer-sharp',
// {
// resolve: 'gatsby-plugin-sitemap',
// options: {
// exclude: ['/test-post'],
// },
// },
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: 'src/utils/typography',
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-149334218-1',
},
},
{
resolve: 'gatsby-plugin-s3',
options: {
bucketName: 'nikcub.me',
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 960,
linkImagesToOriginal: false,
},
},
// { resolve: 'gatsby-remark-copy-linked-files' },
{ resolve: 'gatsby-remark-smartypants' },
],
plugins: ['gatsby-remark-images'],
remarkPlugins: [require('remark-slug')],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/content/posts`,
name: 'posts',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: './content/pages',
name: 'mdx-pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: './content/assets',
name: 'assets',
},
},
],
}