-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
66 lines (64 loc) · 1.69 KB
/
gatsby-config.js
File metadata and controls
66 lines (64 loc) · 1.69 KB
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
const roboto = require("@theme-ui/preset-funk");
const date = new Date();
const year = date.getFullYear();
module.exports = {
siteMetadata: {
siteTitle: `JavaScript Trivia`,
defaultTitle: `JavaScript Trivia`,
siteTitleShort: `JavaScript Trivia`,
siteDescription: `JavaScript trivia questions and public API`,
siteUrl: `https://javascript-trivia.com`,
siteLogo: "/logo.png",
siteAuthor: `Ben Perlmutter`,
siteImage: `/banner.png`,
siteLanguage: `en`,
themeColor: `#1103FF`,
basePath: `/`,
footer: `Made with love, Gatsby, and java (the liquid kind)
by Ben Perlmutter. © ${year}`,
},
plugins: [
{
resolve: `@rocketseat/gatsby-theme-docs`,
options: {
configPath: `src/config`,
docsPath: `src/docs`,
githubUrl: `https://github.com/rocketseat/gatsby-themes`,
baseDir: `examples/gatsby-theme-docs`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `JavaScript Trivia - trivia questions and public API`,
short_name: `JavaScript Trivia`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#1103FF`,
display: `standalone`,
icon: `static/favicon.png`,
},
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `UA-164663303-2`,
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://javascript-trivia.com`,
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-theme-ui`,
options: {
preset: roboto,
// basePath: `/`,
},
},
],
};