-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquartz.config.ts
105 lines (103 loc) · 3.16 KB
/
quartz.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
import {QuartzConfig} from "./quartz/cfg"
import * as Plugin from "./quartz/plugins"
// 获取当前环境
const isDev = process.env.NODE_ENV === 'development' || process.argv.includes('--local')
/**
* Quartz 4.0 Configuration
*
* See https://quartz.jzhao.xyz/configuration for more information.
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "🪴 8Cats & Me",
enableSPA: true,
enablePopovers: true,
locale: "zh-CN",
baseUrl: isDev ? "localhost:8080" : "8cat.life",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
body: "Source Sans Pro",
code: "Fire Code",
},
colors: {
lightMode: {
light: "#FFFCF0", // 温暖的米色背景
lightgray: "#ebe6e0", // 调整为更温暖的浅灰色
gray: "#c0b8b0", // 中性偏暖的灰色
darkgray: "#5a534d", // 深灰带一点褐
dark: "#8b2e2e", // 稍微柔和的深红色
secondary: "#2c5875", // 更柔和的蓝色
tertiary: "#8fb5ac", // 略微提亮的青绿色
highlight: "#C4D7C472", // 更柔和的高亮色
textHighlight: "#ffdb4d88", // 温暖的黄色高亮
},
darkMode: {
light: "#161618",
lightgray: "#393639",
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#b3aa0288",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
}),
Plugin.InlineSVG({
maxImageSize: 10000000, // 10MB
maxTotalSize: 100000000, // 100MB
label: {
text: 'SVG',
enabled: true,
excalidraw: {
text: '@Excalidraw', // 自定义 excalidraw 标签文本
enabled: true // 是否显示 excalidraw 标签
}
}
}),
Plugin.Mermaid({
label: {
text: '@Mermaid', // 自定义标签文本
enabled: true // 是否显示标签
}
}),
Plugin.SyntaxHighlighting(),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false, mermaid: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents({maxDepth: 3}),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest", openLinksInNewTab: true }),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.HardLineBreaks()
],
filters: [Plugin.RemoveDrafts()],
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.TagPage(),
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.NotFoundPage(),
],
},
}
export default config