digital-garden/.quartz/quartz.config.ts

90 lines
2.3 KiB
TypeScript
Raw Normal View History

2024-09-02 08:40:46 +03:00
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: {
2024-09-02 21:35:14 +03:00
pageTitle: "Struchkov's Garden 🪴",
2024-09-02 08:40:46 +03:00
enableSPA: false,
enablePopovers: true,
locale: "ru-RU",
baseUrl: "garden.struchkov.dev/ru",
2024-09-02 08:40:46 +03:00
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "modified",
2024-09-02 08:40:46 +03:00
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
2024-09-05 02:29:45 +03:00
header: "Schibsted Grotesk",
body: "Inter",
2024-09-02 08:40:46 +03:00
code: "IBM Plex Mono",
},
colors: {
lightMode: {
light: "#faf8f8",
lightgray: "#e5e5e5",
gray: "#b8b8b8",
darkgray: "#292929",
2024-09-02 08:40:46 +03:00
dark: "#2b2b2b",
2024-09-04 20:41:49 +03:00
secondary: "#2c678d",
2024-09-02 08:40:46 +03:00
tertiary: "#84a59d",
highlight: "rgba(0, 80, 219, 0.15)",
2024-09-02 08:40:46 +03:00
textHighlight: "#fff23688",
},
darkMode: {
light: "#161618",
lightgray: "#393639",
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#b3aa0288",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["git", "frontmatter"],
2024-09-02 08:40:46 +03:00
}),
Plugin.SyntaxHighlighting({
theme: {
2024-09-05 00:46:14 +03:00
light: "github-light",
dark: "vitesse-dark",
2024-09-02 08:40:46 +03:00
},
keepBackground: false,
}),
Plugin.HardLineBreaks(),
2024-09-02 08:40:46 +03:00
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "relative", lazyLoad: true }),
2024-09-02 08:40:46 +03:00
Plugin.Description(),
],
filters: [Plugin.RemoveDrafts()],
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),
2024-09-06 00:46:35 +03:00
Plugin.TagPage(),
2024-09-02 08:40:46 +03:00
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.NotFoundPage(),
],
},
}
export default config