-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
169 lines (166 loc) · 4.77 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
pathPrefix: '/',
siteMetadata: {
title: 'Riaz Raza',
subtitle: 'Cognitive Software Engineer',
description: `Hi, I'm Riaz Raza, Software Engineer. I am an analytical thinker who have a passion to get things done. A team player & an eager problem solver. A flexible & cognition type of person who is curious enough to learn things & improve them..`,
siteUrl: 'https://riazraza.me',
disqusShortname: 'riazraza',
twitterUsername: "@S_Riaz_Raza",
social: [
{ title: 'Github', link: 'https://github.com/SRiazRaza', icon: 'github' },
{ title: 'Twitter', link: 'https://twitter.com/S_Riaz_Raza', icon: 'twitter' },
{ title: 'Linkedin', link: 'https://www.linkedin.com/in/syed-riaz-raza-a2002a181', icon: 'linkedin' },
{ title: 'Medium', link: 'https://medium.com/@riazraza0', icon: 'medium' }
],
menu: [
{ title: 'Home', id: '', to: '/', icon: 'home' },
{ title: 'Blog', id: 'Blog', to: '/blog', icon: 'home' },
{ title: 'About', id: 'About', to: '/about', icon: 'home' },
{ title: 'Portfolio', id: 'Portfolio', to: '/portfolio', icon: 'home' },
{ title: 'Contact', id: 'Contact', to: '/contact', icon: 'home' }
]
},plugins: [
`gatsby-plugin-advanced-sitemap`,
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`pacifico:400`, `raleway:100,400,600,700`, "lato: 300,400,500"]
}
},
'gatsby-plugin-sass',
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: 'src/utils/typography.js'
}
},
{
// All images from assets folder. For use in website.
resolve: 'gatsby-source-filesystem',
options: {
name: 'img',
path: `${__dirname}/src/assets/images`
}
},
{
// All images for Markdown pages. For use in generated posts, projects.
resolve: 'gatsby-source-filesystem',
options: {
name: 'img',
path: `${__dirname}/static/img/`
}
},
{
// Markdown pages: posts and projects folder
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages/`
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-175307357-1",
head: false,
sampleRate: 5,
siteSpeedSampleRate: 10,
cookieDomain: 'riazraza.me',
cookieName: 'SRiazRaza',
cookieExpires: 86400
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
sizeByPixelDensity: true
}
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`
}
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
offsetY: `75`
}
},
{
resolve: 'gatsby-remark-emojis',
options: {
active: true,
class: 'emoji-icon',
size: 64,
styles: {
display: 'inline',
margin: '0',
position: 'relative'
}
}
},
'gatsby-remark-external-links',
'gatsby-remark-prismjs',
'gatsby-remark-copy-linked-files',
'gatsby-remark-smartypants'
]
}
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
`gatsby-plugin-catch-links`,
'gatsby-plugin-sitemap',
'gatsby-plugin-robots-txt',
{
resolve: 'gatsby-plugin-netlify-cms',
options: {
modulePath: `${__dirname}/src/cms/cms.js`,
manualInit: true,
enableIdentityWidget: false,
customizeWebpackConfig: (config, { plugins }) => {
config.plugins.push(
plugins.define({
__MANIFEST_PLUGIN_HAS_LOCALISATION__: JSON.stringify('false'),
}),
);
},
},
},
{
resolve: 'gatsby-plugin-nprogress',
options: {
color: '#1976d2',
showSpinner: false
}
},
'gatsby-plugin-offline',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Riaz Raza',
short_name: 'Riaz',
start_url: '/',
background_color: '#1976d2',
theme_color: '#1976d2',
display: 'minimal-ui',
icon: 'src/assets/images/logo.png'
}
},
'gatsby-plugin-styled-components'
]
}