-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
104 lines (102 loc) · 2.78 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
const path = require(`path`);
const { name, description, author, homepage } = require('./package.json');
require('dotenv').config();
module.exports = {
siteMetadata: {
title: name,
description,
author,
siteUrl: homepage,
committee: {
year: '2020/21',
},
uptimeRobot: {
apiKey: process.env.UPTIME_ROBOT_APIKEY,
},
menu: [
{ name: 'Home', to: '/' },
{ name: 'Events', to: '/events' },
{ name: 'About', to: '/about' },
{ name: 'Help', to: '/help' },
{ name: 'Services', to: '/services' },
{ name: 'Discord', to: 'https://discord.gg/3aRU5BQ', external: true },
],
social: [
{
link: 'https://github.com/redbrick',
icon: 'github',
},
{
link: 'https://www.facebook.com/dcuredbrick/',
icon: 'facebook',
},
{ link: 'https://www.instagram.com/redbrickDCU/', icon: 'instagram' },
{
link: 'https://twitter.com/RedbrickDCU/',
icon: 'twitter',
},
],
services: [
{ link: 'https://git.redbrick.dcu.ie', icon: 'fab git', label: 'Git' },
{ link: 'https://webmail.redbrick.dcu.ie', icon: 'envelope', label: 'Mail' },
{ link: 'https://wiki.redbrick.dcu.ie', icon: 'info', label: 'Wiki' },
{ link: 'https://paste.redbrick.dcu.ie', icon: 'paste', label: 'Hastebin' },
{ link: 'https://md.redbrick.dcu.ie', icon: 'file', label: 'HackMD' },
{ link: 'https://mastodon.redbrick.dcu.ie', icon: 'share-alt-square', label: 'Mastodon' },
],
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-mdx',
'gatsby-plugin-preact',
{
resolve: 'gatsby-plugin-eslint',
options: {
test: /\.js$|\.jsx$/,
stages: ['develop', 'build-javascript'],
options: {
emitWarning: true,
failOnError: true,
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`),
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: 'gatsby-plugin-manifest',
options: {
short_name: name,
start_url: '/',
name: description,
icon: 'src/images/brick.png',
display: 'standalone',
theme_color: '#000000',
background_color: '#ffffff',
},
},
'gatsby-plugin-offline',
{
resolve: 'gatsby-source-google-spreadsheets',
options: {
spreadsheetId: process.env.SPREADSHEET_ID,
apiKey: process.env.GOOGLE_API_KEY,
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
policy: [
{ userAgent: '*', allow: '/' },
{ userAgent: 'Slurp', allow: '/', crawlDelay: 5 },
],
},
},
],
};