-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgatsby-config.js
104 lines (101 loc) · 2.79 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
require("dotenv").config();
module.exports = {
siteMetadata: {
siteUrl: "https://greensoftware.foundation/",
title: "Green Software Foundation",
description: "The Green Software Foundation is a non-profit with the mission to create a trusted ecosystem of people, standards, tooling and best practices for building green software",
},
plugins: [
{
resolve: "gatsby-source-datocms",
options: {
apiToken: "92c1b380aae9e3cd567d6f16f11e47",
},
},
"gatsby-plugin-netlify",
"gatsby-plugin-sass",
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-feed",
options: {
feeds: [
{
serialize: ({query: {site, allDatoCmsArticle}}) =>
allDatoCmsArticle.edges.map(edge => ({
title: `${edge.node.title}`,
description: `${edge.node.summary}`,
date: `${edge.node.date}`,
url: `${site.siteMetadata.siteUrl}/articles/${edge.node.slug }`,
guid: `${site.siteMetadata.siteUrl}/articles/${edge.node.slug }`,
})),
query: `{
allDatoCmsArticle(
sort: {fields: date, order: DESC}
filter: { isATranslatedArticle: { ne: true } }
) {
edges {
node {
title
summary
date
slug
}
}
}
}`,
output: "/rss.xml",
title: "Green Software Foundation RSS Feed",
},
],
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/assets/static-images/icon.png",
},
},
"gatsby-plugin-sharp",
"gatsby-transformer-remark",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/assets/static-images/",
},
__key: "images",
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.inline\.svg$/,
},
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint:
"https://foundation.us5.list-manage.com/subscribe/post?u=ddc99c7db248c3df0ef4f7d24&id=c5376a805c&f_id=003e64e9f0",
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: ["GTM-WTDZZJF"],
},
},
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
],
};