-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathgatsby-config.js
79 lines (77 loc) · 1.85 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
// only used for dev locally -- not on vercel
require("dotenv").config({
path: ".env"
});
module.exports = {
/* Your site config here */
siteMetadata: require("./site-meta-data.json"),
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/_data`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `yaml-data`,
path: `${__dirname}/_data`
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
aliases: {},
showLineNumbers: false,
noInlineHighlight: false
}
},
{
resolve: "gatsby-remark-emojis"
}
]
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it. replace with yours
trackingId: "UA-164743872-1",
head: true
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Data & Bio Lab, Mahidol University`,
short_name: `DBL`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#381696`,
display: `standalone`,
icon: "src/images/icon.png"
}
},
`gatsby-transformer-yaml`,
`gatsby-plugin-sass`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-netlify-cms`,
"gatsby-plugin-dark-mode",
// siteURL is a must for sitemap generation
`gatsby-plugin-sitemap`,
`gatsby-plugin-offline`
]
};