forked from peterampazzo/dtu-02806-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
83 lines (82 loc) · 1.87 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
const remark_math = require(`remark-math`);
const remark_html_katex = require(`remark-html-katex`);
module.exports = {
flags: { PRESERVE_WEBPACK_CACHE: true },
siteMetadata: {
title: "dtu-02806",
},
plugins: [
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-plugin-netlify`,
options: {
headers: {
"/bokeh.html": ["X-Frame-Options: SAMEORIGIN"],
},
},
},
// "gatsby-plugin-sitemap",
"gatsby-plugin-postcss",
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/images/icon.png",
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 960,
linkImagesToOriginal: false,
// quality: 80,
backgroundColor: "trasparent",
wrapperStyle: `margin-top:60px;margin-bottom:60px;`,
},
},
],
remarkPlugins: [remark_math, remark_html_katex],
},
},
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/src/content/`,
},
__key: "content",
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`Playfair Display\:500,600,700,800,900`,
`Open Sans\:200,300,400,500,600,700`,
],
display: "swap",
},
},
],
};