-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
102 lines (102 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
module.exports = {
siteMetadata: {
title: 'Aggelos Arvanitakis',
description:
'Front end engineer aiming to continuously expand his knowledge by collaborating, learning & teaching. I know & teach React, Svelte, Redux, Apollo, Webperf',
image: `/img/main.jpg`,
logo: `/img/favicon.png`,
siteUrl: `https://aggelos.dev`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `static`,
path: `${__dirname}/static`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/data`,
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /icons/,
},
},
},
`gatsby-plugin-emotion`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-transformer-remark`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Aggelos Arvanitakis | Personal Website`,
short_name: `Aggelos Arvanitakis`,
description: `Personal website of Aggelos Arvanitakis showcasing related work`,
start_url: `/`,
lang: `en-US`,
background_color: `#887CFE`,
theme_color: `#CC26E8`,
display: `standalone`,
icon: `static/img/favicon.png`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_TRACKING_ID,
head: true,
anonymize: true,
respectDNT: false,
},
},
{
resolve: `gatsby-plugin-feed`,
options: {
feeds: [
{
serialize: ({ query: { allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => {
return {
title: edge.node.frontmatter.title,
description: edge.node.frontmatter.description,
date: edge.node.frontmatter.createdAt,
url: edge.node.frontmatter.href,
guid: edge.node.frontmatter.href,
custom_elements: [{ readingTime: edge.node.frontmatter.timeInMinutes }],
};
});
},
query: `
{
allMarkdownRemark(sort: {order: DESC, fields: [frontmatter___createdAt]}, filter: {fileAbsolutePath: {, regex: "data/publications/"}}) {
edges {
node {
frontmatter {
title
description
href
timeInMinutes
createdAt
}
}
}
}
}
`,
output: '/rss.xml',
title: 'Aggelos Arvanitakis RSS Feed',
},
],
},
},
],
};