quartz/quartz.config.ts
2024-07-02 16:06:20 -04:00

123 lines
3.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: "🌆 𝕟𝕠𝕥𝕖𝕤",
enableSPA: true,
enablePopovers: true,
analytics: {
// @ts-ignore
provider: "none",
},
locale: "en-US",
baseUrl: "notes.justin.vc",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
body: "Source Sans Pro",
code: "IBM Plex Mono",
},
colors: {
lightMode: {
light: "#faf8f8",
lightgray: "#e5e5e5",
gray: "#b8b8b8",
darkgray: "#4e4e4e",
dark: "#2b2b2b",
secondary: "#284b63",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
orgh2: "#c54f72" /* Darker shade of light pink */,
orgh3: "#d47c50" /* Darker shade of peach */,
orgh4: "#cf9f6d" /* Muted pale yellow */,
orgh5: "#77b28c" /* Darker shade of light green */,
orgh6: "#5691c8" /* Darker shade of sky blue */,
},
darkMode: {
light: "#1e1e2e", // background color (base)
lightgray: "#313244", // current line (surface0)
gray: "#6272a4", // comment (overlay0)
darkgray: "#f8f8f2", // foreground text (text)
dark: "#f8f8f2", // selection background (surface2)
secondary: "#cba6f7", // purple (mauve)
tertiary: "#f5c2e7", // pink (pink)
highlight: "rgba(108, 112, 134, 0.15)", // subtle highlight (based on overlay0)
orgh2: "#f38ba8" /* Light pink */,
orgh3: "#f4af84" /* Peach */,
orgh4: "#f9e2af" /* Pale yellow */,
orgh5: "#a6e3a1" /* Light green */,
orgh6: "#74c7ec" /* Sky blue */,
},
},
},
},
plugins: {
transformers: [
// Transformations
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "dracula",
},
keepBackground: false,
}),
Plugin.TableOfContents({
showByDefault: true,
collapseByDefault: false,
maxDepth: 6,
minEntries: 2,
}),
Plugin.OxHugoFlavouredMarkdown({
removePredefinedAnchor: true,
anchorTransformation: false,
}),
Plugin.ObsidianFlavoredMarkdown(),
Plugin.GitHubFlavoredMarkdown({
enableSmartyPants: true,
linkHeadings: true,
}),
Plugin.CrawlLinks({
openLinksInNewTab: true,
lazyLoad: false,
}),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
],
filters: [
// Filters
Plugin.RemoveDrafts(),
],
emitters: [
// Emitters
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.TagPage(),
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.NotFoundPage(),
],
},
}
export default config