Skip to content

Commit 1b765a9

Browse files
authoredJul 11, 2022
Update gatsby-config.js
1 parent d1123d9 commit 1b765a9

File tree

1 file changed

+24
-72
lines changed

1 file changed

+24
-72
lines changed
 

‎gatsby-config.js

Lines changed: 24 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
const config = require('./src/config');
1+
const config = require("./src/config");
22

33
module.exports = {
44
siteMetadata: {
5-
title: 'Portfolio | Parth Desai',
5+
title: "Portfolio | Parth Desai",
66
description:
7-
'I am a Data Engineer who is passionate about Data Science and Automation. In my free time, I like developing.',
8-
siteUrl: 'https://parthdesai.vercel.app', // No trailing slash allowed!
9-
image: '/og.png', // Path to your image you placed in the 'static' folder
10-
twitterUsername: '@lone_Musk',
7+
"I am a Data Engineer who is passionate about Data Science and Automation. In my free time, I like developing.",
8+
siteUrl: "https://parthdesai.vercel.app", // No trailing slash allowed!
9+
image: "/og.png", // Path to your image you placed in the 'static' folder
10+
twitterUsername: "@lone_Musk",
1111
},
1212
plugins: [
1313
`gatsby-plugin-react-helmet`,
@@ -20,13 +20,13 @@ module.exports = {
2020
{
2121
resolve: `gatsby-plugin-manifest`,
2222
options: {
23-
name: 'ParthDesai',
24-
short_name: 'ParthDesai',
25-
start_url: '/',
23+
name: "ParthDesai",
24+
short_name: "ParthDesai",
25+
start_url: "/",
2626
background_color: config.colors.darkNavy,
2727
theme_color: config.colors.navy,
28-
display: 'minimal-ui',
29-
icon: 'src/images/logo.png',
28+
display: "minimal-ui",
29+
icon: "src/images/logo.png",
3030
},
3131
},
3232
`gatsby-plugin-offline`,
@@ -38,9 +38,9 @@ module.exports = {
3838
},
3939
},
4040
{
41-
resolve: 'gatsby-source-filesystem',
41+
resolve: "gatsby-source-filesystem",
4242
options: {
43-
name: 'content',
43+
name: "content",
4444
path: `${__dirname}/content/`,
4545
},
4646
},
@@ -58,69 +58,21 @@ module.exports = {
5858
path: `${__dirname}/content/projects`,
5959
},
6060
},
61-
{
62-
resolve: "gatsby-plugin-sitemap",
63-
options: {
64-
query: `
65-
{
66-
allSitePage {
67-
nodes {
68-
path
69-
}
70-
}
71-
allWpContentNode(filter: {nodeType: {in: ["Post", "Page"]}}) {
72-
nodes {
73-
... on WpPost {
74-
uri
75-
modifiedGmt
76-
}
77-
... on WpPage {
78-
uri
79-
modifiedGmt
80-
}
81-
}
82-
}
83-
}
84-
`,
85-
resolveSiteUrl: () => siteUrl,
86-
resolvePages: ({
87-
allSitePage: { nodes: allPages },
88-
allWpContentNode: { nodes: allWpNodes },
89-
}) => {
90-
const wpNodeMap = allWpNodes.reduce((acc, node) => {
91-
const { uri } = node
92-
acc[uri] = node
93-
94-
return acc
95-
}, {})
96-
97-
return allPages.map(page => {
98-
return { ...page, ...wpNodeMap[page.path] }
99-
})
100-
},
101-
serialize: ({ path, modifiedGmt }) => {
102-
return {
103-
url: path,
104-
lastmod: modifiedGmt,
105-
}
106-
},
107-
},
108-
},
10961
{
11062
resolve: `gatsby-transformer-remark`,
11163
options: {
11264
plugins: [
11365
{
11466
// https://www.gatsbyjs.org/packages/gatsby-remark-external-links
115-
resolve: 'gatsby-remark-external-links',
67+
resolve: "gatsby-remark-external-links",
11668
options: {
117-
target: '_blank',
118-
rel: 'nofollow noopener noreferrer',
69+
target: "_blank",
70+
rel: "nofollow noopener noreferrer",
11971
},
12072
},
12173
{
12274
// https://www.gatsbyjs.org/packages/gatsby-remark-images
123-
resolve: 'gatsby-remark-images',
75+
resolve: "gatsby-remark-images",
12476
options: {
12577
maxWidth: 700,
12678
linkImagesToOriginal: true,
@@ -130,7 +82,7 @@ module.exports = {
13082
},
13183
{
13284
// https://www.gatsbyjs.org/packages/gatsby-remark-code-titles/
133-
resolve: 'gatsby-remark-code-titles',
85+
resolve: "gatsby-remark-code-titles",
13486
}, // IMPORTANT: this must be ahead of other plugins that use code blocks
13587
{
13688
// https://www.gatsbyjs.org/packages/gatsby-remark-prismjs
@@ -143,7 +95,7 @@ module.exports = {
14395
// you may use this to prevent Prism from re-processing syntax.
14496
// This is an uncommon use-case though;
14597
// If you're unsure, it's best to use the default value.
146-
classPrefix: 'language-',
98+
classPrefix: "language-",
14799
// This is used to allow setting a language for inline code
148100
// (i.e. single backticks) by creating a separator.
149101
// This separator is a string and will do no white-space
@@ -173,8 +125,8 @@ module.exports = {
173125
// existing language" below.
174126
languageExtensions: [
175127
{
176-
language: 'superscript',
177-
extend: 'javascript',
128+
language: "superscript",
129+
extend: "javascript",
178130
definition: {
179131
superscript_types: /(SuperType)/,
180132
},
@@ -188,8 +140,8 @@ module.exports = {
188140
// Customize the prompt used in shell output
189141
// Values below are default
190142
prompt: {
191-
user: 'root',
192-
host: 'localhost',
143+
user: "root",
144+
host: "localhost",
193145
global: false,
194146
},
195147
},
@@ -200,7 +152,7 @@ module.exports = {
200152
{
201153
resolve: `gatsby-plugin-google-analytics`,
202154
options: {
203-
trackingId: 'G-X3DVJHL358',
155+
trackingId: "G-X3DVJHL358",
204156
},
205157
},
206158
],

0 commit comments

Comments
 (0)