forked from heyheyzay/womenwhodesign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
106 lines (105 loc) · 2.88 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
require("dotenv").config();
module.exports = {
siteMetadata: {
title: "Women Who Design",
description: `Product design, design systems and web development.`,
siteUrl: `https://womenwho.design`,
},
plugins: [
{
resolve: "gatsby-source-twitter-profiles",
options: {
consumerKey: process.env.WWD_TWITTER_CONSUMER_KEY,
consumerSecret: process.env.WWD_TWITTER_CONSUMER_KEY,
bearerToken: process.env.WWD_TWITTER_BEARER_TOKEN,
twitterIdForFollowingList: "855501234924429312",
},
},
{
resolve: "gatsby-source-seeker",
options: {
key: process.env.WWD_SEEKER_KEY,
},
},
{
resolve: `gatsby-plugin-sass`,
options: {
cssLoaderOptions: {
camelCase: false,
},
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.WWD_GOOGLE_ANALYTICS_ID,
},
},
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/favicon.png",
injectHTML: true,
icons: {
android: false,
appleIcon: false,
appleStartup: false,
coast: false,
favicons: true,
firefox: false,
twitter: false,
yandex: false,
windows: false,
},
},
},
{
resolve: `gatsby-plugin-feed`,
options: {
feeds: [
{
serialize: ({ query: { allSeeker } }) => {
return allSeeker.edges.map((edge) => {
return {
...edge.node.job,
title: `${edge.node.job.company.name}, ${edge.node.job.job_title}`,
description: `${edge.node.job.company.name} is hiring a ${edge.node.job.job_title} in ${edge.node.job.job_location}.`,
date: edge.node.job.creation_date,
url: `https://womenwho.design/${edge.node.fields.slug}`,
guid: `https://womenwho.design/${edge.node.fields.slug}`,
};
});
},
query: `
{
allSeeker(sort: { fields: job___creation_date, order: DESC }) {
edges {
node {
id
fields {
slug
}
job {
job_title
job_location
creation_date
company {
name
}
}
}
}
}
}
`,
output: "/rss.xml",
title: "Women Who Design Job Board",
},
],
},
},
],
};