-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
110 lines (106 loc) · 2.7 KB
/
gatsby-config.ts
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
110
import type { GatsbyConfig } from 'gatsby'
const siteTitle = `Koga Secondary School - PC Club`
const siteUrl = `https://kss-pc.club`
const siteDescription = `KSS PC Club's Website`
const backgroundColor = `#09090f`
const themeColor = `#15171a`
const siteFavicon = `content/assets/favicon.png`
const siteDefaultOgpImage = `/images/ogp_default.png`
const siteMetadata = {
title: siteTitle,
titleTemplate: `%s | ${siteTitle}`,
siteTitleAlt: `KSS PC Club's Website`,
siteHeadline: `KSS PC Club's Website`,
siteUrl: siteUrl,
description: siteDescription,
siteLanguage: `ja`,
siteDefaultOgpImage,
author: `KSS PC Club`,
basePath: `/`,
social: {
github: `kss-pc-club`,
youtube: `UC60LrAyqIHUkqCmzhN2N4Rg`,
},
}
const config: GatsbyConfig = {
siteMetadata,
plugins: [
`gatsby-plugin-emotion`,
`gatsby-plugin-typescript`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-lodash`,
`gatsby-plugin-fontawesome-css`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-root-import`,
{
resolve: `gatsby-transformer-json`,
options: {
typeName: `Json`,
},
},
// `gatsby-plugin-offline`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `content/data`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `articles`,
path: `content/articles`,
ignore: [`**/README.md`],
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-autolink-headers`,
`gatsby-remark-external-links`,
`gatsby-remark-relative-images`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 650,
quality: 90,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
`gatsby-remark-katex`,
],
},
},
`gatsby-plugin-advanced-sitemap`,
{
resolve: `gatsby-plugin-robots-txt`,
options: {
host: siteUrl,
sitemap: `${siteUrl}/sitemap.xml`,
policy: [{ userAgent: `*`, allow: `/` }],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: siteTitle,
short_name: siteTitle,
description: siteDescription,
start_url: `/?utm_source=homescreen`,
background_color: backgroundColor,
theme_color: themeColor,
display: `minimal-ui`,
icon: siteFavicon,
},
},
],
}
export default config