Update quartz.config.ts

This commit is contained in:
enneaa 2025-03-18 19:48:58 +08:00 committed by GitHub
parent 8104a23887
commit 2aed6317f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,44 +8,44 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "Quartz 4", pageTitle: "🌲是話說", 
pageTitleSuffix: "", pageTitleSuffix: "",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
analytics: { analytics: {
provider: "plausible", provider: "plausible",
}, },
locale: "en-US", locale: "zh-CN", 
baseUrl: "enneaa.github.io",  baseUrl: "enneaa.netlify.app",  
ignorePatterns: ["private", "templates", ".obsidian"],  ignorePatterns: ["private", "templates", ".obsidian"], 
defaultDateType: "created", defaultDateType: "created",
theme: { theme: {
fontOrigin: "googleFonts", fontOrigin: "googleFonts",
cdnCaching: true, cdnCaching: true,
typography: { typography: {
header: "Schibsted Grotesk", header: "Noto Serif SC", 
body: "Source Sans Pro", body: "Source Sans Pro",
code: "IBM Plex Mono", code: "IBM Plex Mono",
}, },
colors: { colors: {
lightMode: { lightMode: {
light: "#faf8f8", light: "rgb(255, 252, 240)",
lightgray: "#e5e5e5", lightgray: "rgb(242, 240, 229)",
gray: "#b8b8b8", gray: "#9c9384",
darkgray: "#4e4e4e", darkgray: "#2A354B",
dark: "#2b2b2b", dark: "#08142C",
secondary: "#284b63", secondary: "#274B75",
tertiary: "#84a59d", tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)", highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#fff23688", textHighlight: "#fff23688",
}, },
darkMode: { darkMode: {
light: "#161618", light: "#0c0f14",
lightgray: "#393639", lightgray: "#1D232D",
gray: "#646464", gray: "#5A657B",
darkgray: "#d4d4d4", darkgray: "#d4d4d4",
dark: "#ebebec", dark: "#ebebec",
secondary: "#7b97aa", secondary: "#7188A9",
tertiary: "#84a59d", tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)", highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#b3aa0288", textHighlight: "#b3aa0288",
@ -69,7 +69,12 @@ const config: QuartzConfig = {
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(), Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(), Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({
markdownLinkResolution: "shortest",  
lazyLoad: true,
openLinksInNewTab: true,
prettyLinks: true,
}),
Plugin.Description(), Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }), Plugin.Latex({ renderEngine: "katex" }),
], ],
@ -80,8 +85,8 @@ const config: QuartzConfig = {
Plugin.ContentPage(), Plugin.ContentPage(),
Plugin.FolderPage(), Plugin.FolderPage(),
Plugin.TagPage(), Plugin.TagPage(),
Plugin.ContentIndex({ Plugin.ContentIndex({ 
enableSiteMap: true, enableSiteMap: true, 
enableRSS: true, enableRSS: true,
}), }),
Plugin.Assets(), Plugin.Assets(),