@@ -4,24 +4,36 @@ module.exports = {
4
4
siteMetadata : {
5
5
title : "useHooks" ,
6
6
description : "Easy to understand React Hook recipes" ,
7
- siteUrl : "https://usehooks.com"
7
+ siteUrl : "https://usehooks.com" ,
8
8
} ,
9
9
plugins : [
10
+ {
11
+ resolve : `gatsby-plugin-manifest` ,
12
+ options : {
13
+ name : `useHooks` ,
14
+ short_name : `useHooks` ,
15
+ start_url : `/` ,
16
+ background_color : `#ffffff` ,
17
+ theme_color : `#000000` ,
18
+ display : `standalone` ,
19
+ icon : "static/images/favicon/favicon-32x32.png" ,
20
+ } ,
21
+ } ,
10
22
"gatsby-plugin-styled-components" ,
11
23
"gatsby-plugin-react-helmet" ,
12
24
{
13
25
resolve : "gatsby-source-filesystem" ,
14
26
options : {
15
27
path : `${ __dirname } /src/pages` ,
16
- name : "pages"
17
- }
28
+ name : "pages" ,
29
+ } ,
18
30
} ,
19
31
{
20
32
resolve : "gatsby-source-filesystem" ,
21
33
options : {
22
34
path : `${ __dirname } /static/img` ,
23
- name : "images"
24
- }
35
+ name : "images" ,
36
+ } ,
25
37
} ,
26
38
{
27
39
resolve : `gatsby-transformer-remark` ,
@@ -32,19 +44,19 @@ module.exports = {
32
44
options : {
33
45
theme : `Tomorrow Night Eighties` , // From package.json: contributes.themes[0].label
34
46
extensions : [
35
- `${ __dirname } /ms-vscode.Theme-TomorrowKit-0.1.4.vsix`
36
- ]
37
- }
47
+ `${ __dirname } /ms-vscode.Theme-TomorrowKit-0.1.4.vsix` ,
48
+ ] ,
49
+ } ,
38
50
} ,
39
51
{
40
52
resolve : "gatsby-remark-external-links" ,
41
53
options : {
42
54
target : "_blank" ,
43
- rel : null
44
- }
45
- }
46
- ]
47
- }
55
+ rel : null ,
56
+ } ,
57
+ } ,
58
+ ] ,
59
+ } ,
48
60
} ,
49
61
{
50
62
resolve : `gatsby-plugin-feed` ,
@@ -64,13 +76,13 @@ module.exports = {
64
76
feeds : [
65
77
{
66
78
serialize : ( { query : { site, allMarkdownRemark } } ) => {
67
- return allMarkdownRemark . edges . map ( edge => {
79
+ return allMarkdownRemark . edges . map ( ( edge ) => {
68
80
return Object . assign ( { } , edge . node . frontmatter , {
69
81
description : edge . node . excerpt ,
70
82
date : edge . node . frontmatter . date ,
71
83
url : site . siteMetadata . siteUrl + edge . node . fields . slug ,
72
84
guid : site . siteMetadata . siteUrl + edge . node . fields . slug ,
73
- custom_elements : [ { "content:encoded" : edge . node . html } ]
85
+ custom_elements : [ { "content:encoded" : edge . node . html } ] ,
74
86
} ) ;
75
87
} ) ;
76
88
} ,
@@ -97,11 +109,11 @@ module.exports = {
97
109
` ,
98
110
output : "/rss.xml" ,
99
111
title : "useHooks" ,
100
- link : "https://usehooks.com"
101
- }
102
- ]
103
- }
112
+ link : "https://usehooks.com" ,
113
+ } ,
114
+ ] ,
115
+ } ,
104
116
} ,
105
- `gatsby-plugin-catch-links`
106
- ]
117
+ `gatsby-plugin-catch-links` ,
118
+ ] ,
107
119
} ;
0 commit comments