-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
85 lines (84 loc) · 2.25 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
const siteAddress = new URL("https://hiform-gatsby.nemac.org")
module.exports = {
pathPrefix: "/hiform-gatsby",
siteMetadata: {
author: `jbliss, dmichelson`,
githubRepo: `https://github.com/nemac/hiform-gatsby`,
description: `High-resolution forest mapping`,
title: `HiForm`,
siteUrl: "http://localhost:8000",
},
plugins: [
{
resolve: `gatsby-plugin-breadcrumb`,
options: {
defaultCrumb: {
// location: required and must include the pathname property
location: {
pathname: "/",
},
// crumbLabel: required label for the default crumb
crumbLabel: "Home",
// all other properties optional
crumbSeparator: " > ",
},
},
},
{
resolve: `gatsby-plugin-s3`,
options: {
bucketName: "hiform-gatsby.nemac.org",
protocol: siteAddress.protocol.slice(0, -1),
hostname: siteAddress.hostname,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/static/img`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/content`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
"gatsby-remark-relative-images",
"gatsby-plugin-netlify-cms-paths",
{
resolve: `gatsby-remark-images`,
options: {
wrapperStyle:
'margin-left: 0!important;',
maxWidth: 650,
linkImagesToOriginal: true,
},
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
destinationDir: 'static',
},
},
],
},
},
`gatsby-plugin-netlify-cms-paths`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-material-ui`,
`gatsby-plugin-sass`,
`gatsby-plugin-netlify-cms`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}