Files
skato-quartz/quartz.config.ts
2025-11-23 16:43:49 -05:00

99 lines
2.6 KiB
TypeScript

import { QuartzConfig } from "./quartz/cfg"
import * as Plugin from "./quartz/plugins"
/**
* Quartz 4 Configuration
*
* See https://quartz.jzhao.xyz/configuration for more information.
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "SUKAATO's Hypomnema",
pageTitleSuffix: "a Zettelkasten collection",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
locale: "en-US",
baseUrl: "notes.sukaato.moe",
ignorePatterns: ["**/_private", "**/_bib", "**/_scripts", "**/_templates", "**/_mediadb"],
defaultDateType: "modified",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
title: {name: "Manufacturing Consent"},
header: {name: "Grenze Gotisch"},
body: {name: "Macondo"},
code: {name: "Syne Mono"},
},
colors: {
lightMode: {
light: "#f5f2e8",
lightgray: "#dbbe9c",
gray: "#b8b8b8",
darkgray: "#2c261f",
dark: "#2c261f",
secondary: "#251607",
tertiary: "#263145",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#fbf719",
},
darkMode: {
light: "#131313",
lightgray: "#cccccc",
gray: "#993333",
darkgray: "#ffffff",
dark: "#993333",
secondary: "#993333",
tertiary: "#cc9966",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#cc9966",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(),
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(),
// Comment out CustomOgImages to speed up build time
Plugin.CustomOgImages(),
],
},
}
export default config