Update quartz.config.ts

This commit is contained in:
enneaa 2025-03-12 21:49:55 +08:00 committed by GitHub
parent 5f1f8356a5
commit 9e0a700600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,15 +8,15 @@ 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: "quartz.jzhao.xyz", baseUrl: "enneaaa.netlify.app", 
ignorePatterns: ["private", "templates", ".obsidian"], ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created", defaultDateType: "created",
generateSocialImages: true, generateSocialImages: true,
@ -24,7 +24,7 @@ const config: QuartzConfig = {
fontOrigin: "googleFonts", fontOrigin: "googleFonts",
cdnCaching: true, cdnCaching: true,
typography: { typography: {
header: "Schibsted Grotesk", header: "Schibsted Grotesk", 
body: "Source Sans Pro", body: "Source Sans Pro",
code: "IBM Plex Mono", code: "IBM Plex Mono",
}, },
@ -65,12 +65,12 @@ const config: QuartzConfig = {
light: "github-light", light: "github-light",
dark: "github-dark", dark: "github-dark",
}, },
keepBackground: false, keepBackground: false, 
}), }),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(), Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(), Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "relative", lazyLoad: true }), 
Plugin.Description(), Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }), Plugin.Latex({ renderEngine: "katex" }),
], ],