-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquartz.config.ts
More file actions
91 lines (89 loc) · 2.44 KB
/
quartz.config.ts
File metadata and controls
91 lines (89 loc) · 2.44 KB
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
import { QuartzConfig } from "./quartz/cfg"
import * as Plugin from "./quartz/plugins"
const config: QuartzConfig = {
configuration: {
pageTitle: "Bob's Garden",
pageTitleSuffix: " | Bob",
enableSPA: true,
enablePopovers: false,
analytics: {
provider: "plausible",
},
locale: "zh-CN",
baseUrl: "bob798.github.io",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: { name: "Inter", weights: [400, 600] },
body: { name: "Inter", weights: [400, 500], includeItalic: true },
code: "JetBrains Mono",
},
colors: {
lightMode: {
light: "#ffffff",
lightgray: "#f0f0f0",
gray: "#cccccc",
darkgray: "#333333",
dark: "#1a1a1a",
secondary: "#555555",
tertiary: "#888888",
highlight: "rgba(0, 0, 0, 0.04)",
textHighlight: "#fff8dc88",
},
darkMode: {
light: "#111111",
lightgray: "#222222",
gray: "#555555",
darkgray: "#cccccc",
dark: "#eeeeee",
secondary: "#aaaaaa",
tertiary: "#888888",
highlight: "rgba(255, 255, 255, 0.05)",
textHighlight: "#fff8dc22",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "min-light",
dark: "min-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents({ maxDepth: 3, collapseByDefault: true }),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
],
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.Favicon(),
Plugin.NotFoundPage(),
Plugin.CustomOgImages(),
],
},
}
export default config