-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
119 lines (118 loc) · 3.59 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
require("dotenv").config({
path: `.env`,
})
const path = require("path")
module.exports = {
siteMetadata: {
menu: [
{ name: "Stephen Parker", to: "/" },
{ name: "Projects", to: "/projects/" },
{ name: "Skills", to: "/skills/" },
{ name: "Gallery", to: "/gallery/" },
{ name: "Articles", to: "/blog/" },
{ name: "Contact", to: "/contact/" },
],
links: {
facebook: "https://www.facebook.com/gogravital/",
instagram: "https://www.instagram.com/sparker808/",
twitter: "https://twitter.com/sparker888",
gravital: "https://gravitaldigital.com/",
},
locale: "en",
title: "@sparker888 | Web Developer & Photographer",
titleTemplate: "@sparker888 | Web Developer & Photographer",
description: "Portfolio of @sparker888.",
siteUrl: "https://www.sparker888.com", // No trailing slash allowed!
twitterUsername: "@sparker888",
publicURL: "/sparker888-social-image.jpg", // This will be the default 'social' image for social media shares (in the static folder)
organization: "Gravital Digital",
author: "@sparker888",
name: "facebook-domain-verification content=n5hwp1vocfsi394ttexpeqruhjo0a1",
},
plugins: [
"gatsby-plugin-gatsby-cloud",
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-manifest", // See https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/
options: {
name: `sparker888 Portfolio`,
short_name: `sparker888`,
start_url: `/`,
background_color: `#333663`, // The background_color property is used on the splash screen when the application is first launched on mobile.
theme_color: `663399`, // The theme_color sets the color of the tool bar, and may be reflected in the app's preview in task switchers.
display: `minimal-ui`,
icon: "src/images/icon.png",
theme_color_in_head: false, // This will avoid adding theme-color meta tag.
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
downloadLocal: true,
},
},
"gatsby-plugin-postcss",
{
resolve: `gatsby-plugin-sharp`,
options: {
// Defaults used for gatsbyImageData and StaticImage
defaults: {},
// Relates to "options.failOn" in https://sharp.pixelplumbing.com/api-constructor#parameters
failOn: `warning`,
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-styled-components",
"gatsby-plugin-mdx-embed",
{
resolve: "gatsby-plugin-mdx",
options: {
extensions: [`.md`, `.mdx`],
defaultLayouts: {
pages: path.join(__dirname, "./src/templates/pages.jsx"),
},
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: "gatsby-plugin-anchor-links",
options: {
offset: -120,
},
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-PTGCLGT",
includeInDevelopment: false,
defaultDataLayer: { platform: `gatsby` },
enableWebVitalsTracking: true,
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: "448796836214637",
},
},
],
}