-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
98 lines (97 loc) · 2.47 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
siteMetadata: {
title: `Erik André Jakobsen`,
description: `Erik André Jakobsen is a mathematician and web developer who learns in public.`,
author: `Erik André Jakobsen`,
keywords: [
`latex tutorial`,
`gatsby tutorial`,
`developer blog`,
`blog`,
`norsk blogg`,
`koding`,
`software`,
],
siteUrl: `https://eaj.no`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`, // this entry has to be the first or will not work as per FAQ
options: {
path: `${__dirname}/static/assets`,
name: `assets`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/posts`,
name: `posts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/thumbnails`,
name: `thumbnails`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Erik André Jakobsen`,
short_name: `eaj.no`,
start_url: `/`,
background_color: `#f0f0f0`,
theme_color: `#bb002d`,
display: `standalone`,
icon: `src/images/icon.png`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
`gatsby-plugin-sharp`,
`gatsby-remark-katex`,
{
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: 850,
backgroundColor: `transparent`,
wrapperStyle: `
margin: 2rem auto;
box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
`,
},
},
`gatsby-remark-code-titles`,
{
resolve: `gatsby-remark-prismjs`,
options: {
inlineCodeMarker: `›`,
},
},
],
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
],
};