| | |
| | | import { QuartzConfig } from "./quartz/cfg" |
| | | import * as Plugin from "./quartz/plugins" |
| | | |
| | | /** |
| | | * Quartz 4.0 Configuration |
| | | * |
| | | * See https://quartz.jzhao.xyz/configuration for more information. |
| | | */ |
| | | const config: QuartzConfig = { |
| | | configuration: { |
| | | pageTitle: "🪴 Quartz 4.0", |
| | | description: "Quartz Documentation Page and Demo", |
| | | enableSPA: true, |
| | | enablePopovers: true, |
| | | analytics: { |
| | | provider: "plausible", |
| | | }, |
| | | locale: "en-US", |
| | | baseUrl: "quartz.jzhao.xyz", |
| | | ignorePatterns: ["private", "templates", ".obsidian"], |
| | | defaultDateType: "created", |
| | | theme: { |
| | | fontOrigin: "googleFonts", |
| | | cdnCaching: true, |
| | | typography: { |
| | | header: "Schibsted Grotesk", |
| | | body: "Source Sans Pro", |
| | |
| | | plugins: { |
| | | transformers: [ |
| | | Plugin.FrontMatter(), |
| | | Plugin.TableOfContents(), |
| | | Plugin.CreatedModifiedDate({ |
| | | priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower |
| | | priority: ["frontmatter", "filesystem"], |
| | | }), |
| | | Plugin.SyntaxHighlighting(), |
| | | Plugin.Latex({ renderEngine: "katex" }), |
| | | Plugin.SyntaxHighlighting({ |
| | | theme: { |
| | | light: "github-light", |
| | | dark: "github-dark", |
| | | }, |
| | | keepBackground: false, |
| | | }), |
| | | Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), |
| | | Plugin.GitHubFlavoredMarkdown(), |
| | | Plugin.TableOfContents(), |
| | | Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), |
| | | Plugin.Latex({ renderEngine: "katex" }), |
| | | Plugin.Description(), |
| | | ], |
| | | filters: [Plugin.RemoveDrafts()], |
| | | emitters: [ |
| | | Plugin.AliasRedirects(), |
| | | Plugin.ComponentResources({ fontOrigin: "googleFonts" }), |
| | | Plugin.ComponentResources(), |
| | | Plugin.ContentPage(), |
| | | Plugin.FolderPage(), |
| | | Plugin.TagPage(), |