This repository has been archived by the owner on Oct 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
executable file
·109 lines (108 loc) · 2.7 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
108
109
module.exports = {
siteMetadata: {
title: "Artsy Engineering blog",
description: "Engineering blog!",
author: "@Artsy",
},
plugins: [
{
resolve: `gatsby-plugin-lodash`,
options: {
disableFeatures: [`shorthands`, `cloning`],
},
},
{
resolve: "gatsby-plugin-lunr",
options: {
languages: [{ name: "en" }],
filterNodes: node =>
!node.frontmatter || node.frontmatter.draft !== true,
fields: [
{ name: "date", store: true },
{ name: "title", store: true },
{ name: "author", store: true },
{ name: "categories", store: true },
{ name: "series" },
],
resolvers: {
MarkdownRemark: {
title: node => node.frontmatter.title,
author: node => node.frontmatter.author,
categories: node => node.frontmatter.categories,
series: node => node.frontmatter.series,
date: node => node.frontmatter.date,
},
},
filename: "search_index.json",
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/blog`,
name: "blog",
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content/assets`,
name: "assets",
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-embed-video`,
options: {
width: 800,
height: 400,
related: false,
noIframeBorder: true,
},
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 500,
},
},
{
resolve: "gatsby-remark-external-links",
options: {
target: "_blank",
rel: "nofollow noopener noreferrer",
},
},
`gatsby-remark-responsive-iframe`,
],
},
},
"gatsby-plugin-typescript",
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/content/blog/images`,
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "gatsby-starter-default",
short_name: "starter",
start_url: "/",
background_color: "#663399",
theme_color: "#663399",
display: "minimal-ui",
icon: "src/images/artsy_logo copy.png",
},
},
"gatsby-plugin-offline",
],
}