-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
98 lines (97 loc) · 2.51 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
siteMetadata: {
title: `{{{サイトの名前を入れる}}}`,
description: `{{{サイトの説明を入れる}}}`,
siteUrl: `{{{サイトのURLを入れる}}}`,
ogImage: `{{{サイトのOGPのパスを入れる}}}`,
author: `{{{サイト作成者を入れる}}}`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/blog`
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-162931294-1"
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `{{{サイトの名前を入れる}}}`,
short_name: `{{{サイトの名前を入れる}}}`,
start_url: `/?standalone=true`,
theme_color: `{{{カラーコード}}}`,
background_color: `{{{カラーコード}}}`,
display: `standalone`,
icon: `static/icon.png`,
}
},
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require('autoprefixer'),
require('postcss-import'),
require('postcss-simple-vars'),
require('postcss-mixins'),
require('postcss-nesting'),
require('postcss-css-reset'),
require('postcss-color-function'),
require('postcss-flexbugs-fixes'),
require('postcss-custom-media'),
require('postcss-media-minmax'),
require('postcss-pixels-to-rem')
],
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
icon: false,
},
},
{
resolve: "gatsby-remark-external-links"
},
{
resolve: `gatsby-remark-prismjs`,
}
]
}
},
{
resolve: `gatsby-plugin-netlify`,
options: {
headers: {
'/*.html': [
'cache-control: public, max-age=0, must-revalidate'
],
},
},
},
`gatsby-plugin-netlify-cms`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-twitter`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-layout`,
`gatsby-plugin-remove-serviceworker`,
`gatsby-plugin-draft`
]
}