-
Notifications
You must be signed in to change notification settings - Fork 17
/
gatsby-config.js
65 lines (64 loc) · 1.37 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
siteMetadata: {
title: "Open Disclosure San José",
description:
"Keep tabs on the influence of money in local San José elections",
author: "Code for San José",
},
plugins: [
`gatsby-plugin-sass`,
`gatsby-transformer-json`,
`gatsby-plugin-eslint`,
`gatsby-plugin-react-axe`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "G-1ZFK2JF1YP",
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: "./src/data",
},
},
{
resolve: "gatsby-plugin-slug-field",
options: {
nodeType: "Candidate",
baseField: 'Name',
fieldName: "slug",
},
},
{
resolve: "gatsby-plugin-slug-field",
options: {
nodeType: 'CandidatesJson',
baseField: 'name',
fieldName: "slug",
},
},
{
resolve: "gatsby-plugin-slug-field",
options: {
nodeType: 'OfficeElection',
baseField: 'Title',
fieldName: "slug",
},
},
{
resolve: "gatsby-plugin-slug-field",
options: {
nodeType: 'Referendum',
baseField: 'Title',
fieldName: "slug",
},
},
],
}