-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
113 lines (111 loc) · 3.13 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
105
106
107
108
109
110
111
112
113
const netlifyAdapter = require("gatsby-adapter-netlify").default;
module.exports = {
siteMetadata: {
title: `Monash Human Power`,
shortTitle: `MHP`,
description: `Learn about Monash Human Power and its human powered vehicles`,
author: `Monash Human Power`,
siteUrl: `https://monashhumanpower.org`,
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// replace "UA-XXXXXXXXX-X" with MHP Tracking ID
trackingId: "UA-172946597-1",
},
},
{
// Heap analytics is similar to google analytics, but can give click by click user activity
resolve: "gatsby-plugin-heap",
options: {
appId: "1394991606",
enableOnDevMode: true, // if 'false', heap will be fired on NODE_ENV=production only
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sitemap`,
{
// Images folder
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
// Markdown folder
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/markdown`,
},
},
{
// Blog folder
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/blog`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-prismjs`,
{
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: 640,
},
},
{
resolve: `gatsby-remark-classes`,
options: {
classMap: {
// Add the bootstrap table classes to all tables
// https://getbootstrap.com/docs/5.0/content/tables/
table: "table",
},
},
},
],
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Monash Human Power`,
short_name: `MHP`,
start_url: `/`,
background_color: `black`,
theme_color: `black`,
display: `minimal-ui`,
// Icon to be used browser tabs
icon: `src/images/MHP_logo_green_black.png`, // This path is relative to the root of the site.
},
},
{
resolve: "gatsby-plugin-anchor-links",
options: {
offset: -100,
duration: 0,
},
},
`gatsby-plugin-styled-components`, // For CSS-in-CSS
`gatsby-plugin-netlify-cms`, // For Netlify headless CMS
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
adapter: netlifyAdapter({
excludeDatastoreFromEngineFunction: false,
}),
};