-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
127 lines (127 loc) · 4.48 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
module.exports = {
siteMetadata: {
title: `Mohammad Mohibbullah`,
description: `I'm a software engineer in Bangladesh. My favorite language is JavaScript. I love working with frontend staff like React, CSS, Animation. I've also some knowledge with the backend technologies like NodeJS, MongoDB`,
author: `Mohib`,
siteUrl: `https://mohib.me`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/contents/posts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `projects`,
path: `${__dirname}/contents/projects`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/contents/images`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
showCaptions: ['title', 'alt'],
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: 'language-',
inlineCodeMarker: null,
aliases: { sh: 'bash', js: 'javascript' },
showLineNumbers: true,
noInlineHighlight: false,
languageExtensions: [],
prompt: {
user: 'root',
host: 'localhost',
global: false,
},
escapeEntities: {},
},
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
icon: `<svg version="1.1" x="0px" y="0px" viewBox="0 0 162.656 162.656" xml:space="preserve" width="0.6em" height="0.6em" fill="hsl(var(--p)" stroke="hsl(var(--p)" stroke-width="0"><path d="M151.764,10.894c-14.522-14.522-38.152-14.525-52.676-0.008l0.003,0.003L76.112,33.872l10.607,10.605l22.983-22.988 l-0.002-0.002c8.678-8.663,22.785-8.658,31.457,0.014c8.673,8.672,8.672,22.786,0,31.461l-34.486,34.484 c-4.201,4.202-9.787,6.516-15.729,6.516c-5.942,0-11.529-2.314-15.73-6.516L64.605,98.052c7.035,7.035,16.389,10.91,26.338,10.91 c9.949,0,19.303-3.875,26.335-10.91l34.487-34.484C166.284,49.043,166.284,25.413,151.764,10.894z"></path> <path d="M52.96,141.162L52.96,141.162c-8.675,8.67-22.788,8.668-31.461-0.005c-8.673-8.675-8.673-22.791-0.001-31.465L55.98,75.21 c8.675-8.674,22.789-8.674,31.462,0L98.05,64.604c-14.524-14.523-38.154-14.524-52.676,0L10.89,99.086 c-14.519,14.523-14.519,38.154,0.001,52.678c7.263,7.262,16.801,10.893,26.341,10.892c9.536,0,19.074-3.629,26.333-10.887 l0.002-0.001l22.984-22.99l-10.608-10.606L52.96,141.162z"></path> </svg>`,
className: `header-anchor-icon`,
enableCustomId: true,
},
},
],
},
},
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
formats: [`auto`, `webp`],
quality: 80,
},
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-image`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `mohib.me`,
short_name: `mohib`,
start_url: `/`,
background_color: `#152331`,
theme_color: `#57AA6F`,
display: `minimal-ui`,
icon: `src/assets/images/logo-mini.png`, // This path is relative to the root of the site.
},
},
{
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-CELQJT36YL', // 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,
},
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [require('tailwindcss'), require('autoprefixer')],
},
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: false,
develop: false,
tailwind: true,
ignore: ['prismjs/', '/src/style/prism.css'],
},
},
`gatsby-plugin-advanced-sitemap`,
],
};