-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
111 lines (109 loc) · 3.42 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
const linkResolver = require('./src/utils/link-resolver');
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
trailingSlash: `always`,
siteMetadata: {
title: 'Notes on Travels in Nature',
description: "Marc Mauger's backpacking trip reports",
keywords:
'nature, travel, outdoors, hiking, backpacking, thru-hiking, ultralight, cross-country, rock climbing, cascades, sierras, trekking, adventuring, solo, ultralight, bushcraft, pacific northwest, sierras, glaciers, volcanoes, wild, backcountry, survival, PCT, JMT, CDT, PNT',
twitterUsername: '@simianarmy',
siteUrl: 'https://www.simianarmy.com',
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `entries`,
path: `${__dirname}/src/entries/`,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.md', '.mdx'],
gatsbyRemarkPlugins: [`gatsby-remark-responsive-iframe`],
mdxOptions: {
remarkPlugins: [
{
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: 650,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
},
],
},
},
},
`gatsby-transformer-remark`,
'gatsby-plugin-image',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Marc's Outdoors Blog",
short_name: 'Marc Outdoors',
start_url: '/',
background_color: '#ffffff',
theme_color: '#ffffff',
display: 'minimal-ui',
icon: 'src/images/mountain.png', // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
//'gatsby-plugin-offline',
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: `src/utils/typography.js`,
},
},
'gatsby-plugin-postcss',
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-130206157-1',
// Puts tracking script in the head instead of the body
head: true,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ['/tags/**'],
// Enables Google Optimize using your container Id
},
},
{
resolve: `gatsby-source-prismic`,
options: {
repositoryName: `simianarmy`,
accessToken: `${process.env.PRISMIC_API_KEY}`,
linkResolver: () => (doc) => linkResolver(doc),
schemas: {
outing: require('./src/schemas/outing.json'),
thruhike: require('./src/schemas/thruhike.json'),
'thruhike-section': require('./src/schemas/thruhike-section.json'),
},
},
},
'gatsby-plugin-netlify',
],
};