/
gatsby-config.js
97 lines (97 loc) · 3.5 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
module.exports = {
siteMetadata: {
title: '.k3 - Personal Website & Blog',
},
plugins: [
/**
* Use React 16 with your Gatsby v1 site!
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-next
*/
'gatsby-plugin-react-next',
/**
* Provides drop-in support for server rendering data added with React Helmet.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet/
*/
'gatsby-plugin-react-helmet',
/**
* Provides drop-in support for SASS/SCSS stylesheets
* @see https://www.gatsbyjs.org/packages/gatsby-plugin-sass/
*/
'gatsby-plugin-sass',
/**
* Intercepts local links from markdown and other non-react pages.
* Does a client-side pushState to avoid the browser having to refresh the page.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-catch-links/
*/
'gatsby-plugin-catch-links',
/**
* Create an RSS feed (or multiple feeds) for your Gatsby site.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-feed
*/
'gatsby-plugin-feed',
/**
* Exposes several image processing functions built on the Sharp image processing library.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp
* @see https://github.com/lovell/sharp
*/
'gatsby-plugin-sharp',
/**
* A Gatsby plugin for utilizing the Typography library with minimal configuration.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typography
* @see https://kyleamathews.github.io/typography.js/
*/
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`,
},
},
{
/**
* Plugin for creating File nodes from the file system.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem
*/
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/pages`,
name: 'pages',
},
},
{
/**
* Parses Markdown files using Remark.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-remark
* @see https://remark.js.org/
*/
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
/**
* Adds syntax highlighting to code blocks in markdown files using PrismJS.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-prismjs
* @see http://prismjs.com/
*/
'gatsby-remark-prismjs',
/**
* Copies local files linked to/from markdown to your public folder.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-copy-linked-files
*/
'gatsby-remark-copy-linked-files',
{
/**
* Processes images in markdown so they can be used in the production build.
* @see https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images
*/
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 590,
},
},
],
},
},
],
}