-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
162 lines (158 loc) · 4.19 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
module.exports = {
proxy: {
prefix: "/graphql",
url: "http://localhost:3000",
},
siteMetadata: {
title: `Observatory`,
description: `The Observatory’s goal is to measure how people interact with government services. It empowers and supports teams to provide better services and outcomes for everyone.`,
author: `Digital Transformation Agency`,
siteUrl: `https://observatory.service.gov.au/`,
menuLinks: [
{
text: "Home",
link: "/",
},
{
text: "Get started",
link: "/get-started",
},
{
text: "Google Analytics 360",
link: "/analytics-360",
},
{
text: "Events",
link: "/events",
},
{
text: "Blog",
link: "/blogs",
},
{
text: "Research",
link: "/research",
},
{
text: "Resources",
link: "/resources",
},
],
footerLinks: [
{
text: "Privacy Policy",
link: "/privacy",
},
{
text: "Blogs",
link: "/blogs",
},
{
text: "Events",
link: "/events",
},
{
text: "Source code",
link: "/resources#source-code",
},
{
text: "Contact us",
link: "/contact-us",
},
],
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-typescript`,
`gatsby-plugin-sass`,
`gatsby-plugin-lodash`,
`gatsby-plugin-mdx`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-breadcrumb`,
options: {
// useAutoGen: required 'true' to use autogen
useAutoGen: true,
// autoGenHomeLabel: optional 'Home' is default
// autoGenHomeLabel: `Root`,
// crumbLabelUpdates: optional, update specific crumbLabels in the path
crumbLabelUpdates: [
{
pathname: "/blogs",
crumbLabel: "Blogs",
},
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content`,
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint:
"https://dta.us12.list-manage.com/subscribe/post?u=81bbb1d15242b2224ee11e3fe&id=c4764336ba",
timeout: 3500, // number; the amount of time, in milliseconds, that you want to allow mailchimp to respond to your request before timing out. defaults to 3500
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
isIconAfterHeader: true,
elements: [`h2`, `h3`, `h3`],
},
},
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gov.au Analytics platform`,
short_name: `starter`,
start_url: `/`,
background_color: `#FFF`,
theme_color: `#FFF`,
display: `minimal-ui`,
icon: `src/images/favicon.png`, // This path is relative to the root of the site.
},
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-KCC7M5F",
// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: { platform: "gatsby" },
// Specify optional GTM environment details.
// gtmAuth: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_AUTH_STRING",
// gtmPreview: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_PREVIEW_NAME",
// dataLayerName: "YOUR_DATA_LAYER_NAME",
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};