-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
executable file
·91 lines (88 loc) · 2.21 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
// Query a file from content/
const rss = require("./utils/rss-option");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: "Codecademia",
description:
"An accessible platform dedicated to sharing refined and translated advanced computer science concepts to ease learning.",
siteUrl: process.env.BASE_URL,
body: {
content: "Learn to code efficiently and accessibly.",
},
},
plugins: [
"gatsby-plugin-sass",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-feed",
options: rss.options,
},
// Change file to file nodes
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content/`,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-909SMKT4DN", // Google Analytics / GA
],
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true,
},
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-prismjs",
options: {
aliases: {
es6: "js",
},
},
},
],
},
},
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Codecademia`,
short_name: `Codecademia`,
start_url: `/`,
background_color: `#f7f0eb`,
theme_color: `#a2466c`,
display: `standalone`,
icon: "src/assets/JOO_.png",
icons: [
{
src: "src/assets/JOO_.png",
sizes: "1945x1945",
type: "image/png",
},
{
src: "src/assets/maskable_icon_x192.png",
sizes: "192x192",
type: "image/png",
purpose: "any maskable",
},
],
},
},
`gatsby-plugin-offline`,
],
};