-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
94 lines (93 loc) · 2.47 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
const path = require('path')
require('dotenv').config({ path: '.env.development' })
module.exports = {
siteMetadata: {
title: `ABCDev blog`,
},
plugins: [
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/layouts/index.js`),
},
},
"gatsby-plugin-catch-links",
"gatsby-plugin-react-helmet",
`gatsby-transformer-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/pages/articles`,
name: "pages",
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/images`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: ["gatsby-remark-prismjs", "gatsby-remark-reading-time", {
resolve: 'gatsby-remark-emojis',
options: {
// Deactivate the plugin globally (default: true)
active : true,
// Add a custom css class
class : 'emoji-icon',
// In order to avoid pattern mismatch you can specify
// an escape character which will be prepended to the
// actual pattern (e.g. `#:poop:`).
escapeCharacter : '#', // (default: '')
// Select the size (available size: 16, 24, 32, 64)
size : 32,
// Add custom styles
styles : {
display : 'inline',
margin : '0',
'margin-top' : '1px',
position : 'relative',
top : '5px',
width : '25px'
}
}
}],
},
},
{
resolve: `gatsby-plugin-googledrive`,
options: {
folderId: `11fbg6fvhSwYbPbLAnqp2eaj2ZYxA0raN`,
keyInfo: {
private_key: process.env.GOOGLE_PRIVATE_KEY,
email: process.env.GOOGLE_SERVICE_ACCOUNT,
},
destination: path.join(__dirname, 'src/talks'),
exportMime: 'application/pdf',
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `talks`,
path: `${__dirname}/src/talks/`,
},
},
{
resolve: `gatsby-plugin-sharp`,
options: {
useMozJpeg: false,
stripMetadata: true,
defaultQuality: 75,
},
},
"gatsby-plugin-postcss"
],
};