-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgatsby-config.js
More file actions
145 lines (140 loc) · 3.4 KB
/
Copy pathgatsby-config.js
File metadata and controls
145 lines (140 loc) · 3.4 KB
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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
console.log(process.env);
module.exports = {
siteMetadata: {
image: "/images/portfolio.png",
defaultTitle: "wassimnassour",
description:
"Wassim Nassour Self-taught front-end developer . i built this Portfolio With React and Gatsby ",
author: "@wassimnassour",
twitterUsername: "@wassimnassour",
url: "https://wassimnassour.vercel.app",
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Wassim Nassour Portfolio`,
short_name: `Wassim`,
description: `The application does cool things and makes your life better.`,
lang: `en`,
display: `standalone`,
icon: `src/images/logo.png`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#fff`,
localize: [
{
start_url: `/de/`,
lang: `de`,
name: `Die coole Anwendung`,
short_name: `Coole Anwendung`,
description: `Die Anwendung macht coole Dinge und macht Ihr Leben besser.`,
},
],
},
},
{
resolve: `gatsby-plugin-styled-components`,
options: {},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`Poppins\:200,300,400,600,700,800,900`,
`source sans pro\:200,300,400,600,700,800,900`,
],
display: "swap",
},
},
{
resolve: `gatsby-source-github-api`,
options: {
// token: required by the GitHub API
token: process.env.GATSBY_GITHUB_LOGIN,
// GraphQLquery: defaults to a search query
graphQLQuery: `query ($author: String = "", $userFirst: Int = 0) {
user(login: $author) {
repositories(first: $userFirst, orderBy: {field: STARGAZERS, direction: DESC} privacy: PUBLIC, isFork: false) {
edges {
node {
id
description
primaryLanguage {
name
}
forkCount
homepageUrl
name
url
stargazers {
totalCount
}
}
}
}
}
}`,
variables: {
userFirst: 5,
author: "wassimnassour",
},
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: `posts`,
},
},
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 850,
},
},
{
resolve: `gatsby-remark-highlight-code`,
options: {
terminal: "carbon",
theme: "material",
},
},
],
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/,
},
},
},
],
};