-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
170 lines (167 loc) · 4.39 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
163
164
165
166
167
168
169
170
const url = 'https://theatenetwork.com';
const siteMetadata = {
title: 'African Tech Enthusiasts',
description:
'African tech enthusiasts. Empowering African youth through technology',
author: '@sheybass',
url: url,
image: `${url}/icons/icon_512x512.png`,
keywords: ['technology', 'africa', 'youth', 'community', 'network'],
navbarLinks: [
{
name: 'Articles',
url: '/articles',
},
{
name: 'Events',
url: '/events',
},
{
name: 'The Team',
url: '/bios',
},
],
social: [
{
name: 'linkedin',
url: 'https://www.linkedin.com/groups/8962751/',
},
{
name: 'youtube',
url: 'https://www.youtube.com/channel/UCdc5VTFzZQh1laVievU4gow',
},
{
name: 'email',
url: 'mailto: [email protected]',
},
],
};
const plugins = [
'gatsby-plugin-theme-ui',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-transformer-yaml',
'gatsby-plugin-remove-trailing-slashes',
{
resolve: 'gatsby-plugin-netlify-cms',
options: {
modulePath: `${__dirname}/src/cms/netlify.js`,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
default: require.resolve(
'./src/templates/default-template.tsx',
),
},
gatsbyRemarkPlugins: [
'gatsby-remark-unwrap-images',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1380,
},
},
],
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
backgroundColor: 'transparent',
},
},
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'bios',
path: `${__dirname}/content/bios`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'articles',
path: `${__dirname}/content/articles`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'events',
path: `${__dirname}/content/events`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/images`,
name: 'images',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/data`,
name: 'site-data',
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /\.inline\.svg$/,
omitKeys: [
'xmlnsDc',
'xmlnsCc',
'xmlnsRdf',
'xmlnsSerif',
'xmlnsSvg',
'xmlnsSodipodi',
'xmlnsInkscape',
'xmlnsTermtosvg',
],
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `African Tech Enthusiasts`,
short_name: `theATEnetwork`,
start_url: `/`,
background_color: `#029E9E`,
theme_color: `#029E9E`,
display: `minimal-ui`,
icon: `./src/images/logo-circled.png`, // This path is relative to the root of the site.
icons: [
{
src: 'icons/icon_512x512.png',
sizes: '512x512',
types: 'image/png',
},
{
src: 'icons/icon_192x192.png',
sizes: '192x192',
types: 'image/png',
},
],
},
},
'gatsby-plugin-offline',
];
const mapping = {
'Mdx.frontmatter.author': 'Mdx.frontmatter.username',
'Mdx.frontmatter.contributors': 'Mdx.frontmatter.username',
};
module.exports = {
plugins: plugins,
siteMetadata: siteMetadata,
mapping: mapping,
};