-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
125 lines (125 loc) · 3.34 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
module.exports = {
siteMetadata: {
title: `FacerAin's Dev-Space`,
description: `FacerAin의 개발 공간입니다.`,
author: `FacerAin`,
siteUrl: `https://facerain.github.io`,
},
plugins: [
`gatsby-plugin-sitemap`,
`gatsby-plugin-netlify`,
{
resolve: "gatsby-plugin-typescript",
options: {
isTSX: true,
allExtensions: true,
},
},
{
resolve: `gatsby-plugin-gtag`,
options: {
trackingId: `G-GKZVVVCLZ9`, // 측정 ID
head: true, // head에 tracking script를 넣고 싶다면 true로 변경
anonymize: true,
},
},
{
resolve: "gatsby-plugin-canonical-urls",
options: {
siteUrl: "https://facerain.github.io",
stripQueryString: true,
},
},
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `contents`,
path: `${__dirname}/contents`,
},
},
{
resolve: `gatsby-plugin-robots-txt`,
options: {
host: `https://facerain.github.io`,
sitemap: `https://facerain.github.io/sitemap.xml`,
policy: [{ userAgent: "*", allow: "/" }],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/static`,
},
},
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-disqus`,
options: {
shortname: `FacerAin`,
},
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-katex`,
options: {
// Add any KaTeX options from https://github.com/KaTeX/KaTeX/blob/master/docs/options.md here
strict: `ignore`
}
},
{
resolve: `gatsby-remark-autolink-headers`,
options: {
className: `anchor-header`, // 이 class명으로 하이라이트 코드를 구현할 예정이므로 반드시 넣자.
maintainCase: false, // 이 부분은 반드시 false로 하자. url이 대소문자를 구분하기 때문에 링크가 작동하지 않을 수 있다.
removeAccents: true,
elements: [`h2`, "h3", `h4`], // 링크를 추가할 Header 종류 선택
},
},
{
resolve: "gatsby-remark-smartypants",
options: {
dashes: "oldschool",
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
aliases: {},
showLineNumbers: true,
noInlineHighlight: false,
},
},
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 768,
quality: 100,
withWebp: true,
showCaptions: true,
},
},
{
resolve: "gatsby-remark-copy-linked-files",
options: {},
},
{
resolve: "gatsby-remark-external-links",
options: {
target: "_blank",
rel: "nofollow",
},
},
],
},
},
],
}