/
gatsby-config.js
40 lines (40 loc) 路 981 Bytes
/
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
module.exports = {
siteMetadata: {
title: 'SHaNc',
description: 'Static Hacker News clone',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-119809136-1',
// Puts tracking script in the head instead of the body
head: false,
anonymize: true,
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ['/preview/**', '/do-not-track/me/too/'],
},
},
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: './src/favicon.png',
injectHTML: true,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: false,
windows: false,
},
},
},
],
}