forked from jeffjadulco/jeffjadulco.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
106 lines (106 loc) · 2.56 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
require("dotenv").config()
module.exports = {
pathPrefix: "/",
siteMetadata: {
title: `Aayush`,
description: `Aayush Acharya is a software developer`,
author: `Aayush Acharya`,
siteUrl: `https://aayushacharya.com.np`,
image: `/images/the-avatar.png`,
twitterUsername: `@aayushacharya_`,
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GOOGLE_ANALYTICS_TRACKING_ID, // Google Analytics / GA
],
pluginConfig: {
head: true,
},
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/content/blog`,
},
},
"gatsby-image",
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Aayush Acharya`,
short_name: `Aayush`,
start_url: `/`,
background_color: `#2d3748`,
theme_color: `#81E6D9`,
display: `minimal-ui`,
icon: `src/assets/images/logo-512x512.png`,
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-postcss`,
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: "https://aayushacharya.com.np",
sitemap: "https://aayushacharya.com.np/sitemap.xml",
policy: [{ userAgent: "*", allow: "/" }],
env: {
development: {
policy: [{ userAgent: "*", disallow: ["/"] }],
},
production: {
policy: [{ userAgent: "*", allow: "/" }],
},
},
},
},
{
resolve: `gatsby-plugin-env-variables`,
options: {
whitelist: ["GOOGLE_ANALYTICS_TRACKING_ID"],
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
disableBgImage: true
},
},
{
resolve: "gatsby-remark-autolink-headers",
options: {
elements: [`h2`, `h3`],
},
},
{
resolve: "gatsby-remark-prismjs",
options: {},
},
],
},
},
"gatsby-remark-autolink-headers",
],
}