-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
92 lines (91 loc) · 2.27 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
*/
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
// 开发环境调试服务端渲染
flags: {
DEV_SSR: true,
},
siteMetadata: {
title: "Loloao",
siteUrl: "https://loloao.netlify.app",
description: "我是一名前端工程师,这里是我的数字基地",
image: "/logo-light.svg",
twitterUsername: "",
// feedUrl:
// logo:
},
plugins: [
"gatsby-plugin-postcss",
{
resolve: `gatsby-source-filesystem`,
options: {
name: `notes`,
path: `${__dirname}/notes/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `static`,
path: `${__dirname}/static/`,
},
},
"gatsby-plugin-sharp",
{
resolve: `gatsby-transformer-remark`,
options: {
// Footnotes mode (default: true)
footnotes: true,
// GitHub Flavored Markdown mode (default: true)
gfm: true,
// Plugins configs
plugins: [
// 用于在标题旁创建跳转链接
"gatsby-remark-autolink-headers",
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
inlineCodeMarker: null,
aliases: {},
showLineNumbers: false,
noInlineHighlight: false,
languageExtensions: [
{
language: "superscript",
extend: "javascript",
definition: {
superscript_types: /(SuperType)/,
},
insertBefore: {
function: {
superscript_keywords: /(superif|superelse)/,
},
},
},
],
prompt: {
user: "root",
host: "localhost",
global: false,
},
escapeEntities: {},
},
},
],
},
},
],
};