-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
107 lines (106 loc) · 2.92 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
require("dotenv").config()
const linkResolver = require("./src/utils/linkResolver")
module.exports = {
flags: {},
siteMetadata: {
title: `النادي الإعلامي`,
description: `موقع النادي الإعلامي في جامعة الملك فهد للبترول والمعادن.`,
author: `النادي الإعلامي`, // Used in post page
url: `https://www.mckfupm.com/`,
image: `/images/media-club-logo.png`,
twitterUsername: `@MediaKfupm`,
mainNavigationLinks: [
{
name: "عن النادي",
dest: "/about",
},
{
name: "الانضمام للنادي",
dest: "/join-us",
},
{
name: "تواصل معنا",
dest: "/contact-us",
},
],
},
plugins: [
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
{
resolve: `gatsby-plugin-page-creator`,
options: {
path: `${__dirname}/src/pages`,
slugify: {
decamelize: false,
},
},
},
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `@chakra-ui/gatsby-plugin`,
options: {
/**
* @property {boolean} [resetCSS=true]
* if false, this plugin will not use `<CSSReset />
*/
resetCSS: true,
// /**
// * @property {boolean} [isUsingColorMode=true]
// * if false, this plugin will not use <ColorModeProvider />
// */
// isUsingColorMode: true,
},
},
{
resolve: "gatsby-source-prismic",
options: {
repositoryName: "mediaclub",
linkResolver: () => doc => linkResolver(doc),
schemas: {
homepage: require("./src/schemas/homepage.json"),
post: require("./src/schemas/post.json"),
tag: require("./src/schemas/tag.json"),
navigation: require("./src/schemas/navigation.json"),
},
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `موقع النادي الإعلامي`,
short_name: `MCKfupm`,
start_url: `/`,
background_color: `#5eada4`,
theme_color: `#5eada4`,
display: `minimal-ui`,
icon: `src/images/media-club-logo.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
],
}