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

92 lines
2.5 KiB
TypeScript
Raw Permalink 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-06 01:39:54 +03:00
header: "Montserrat",
body: "Noto Sans",
2024-09-06 01:35:54 +03:00
code: "Fira Code",
2024-09-02 08:40:46 +03:00
},
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-06 23:30:43 +03:00
textHighlight: "#fff3bc",
2024-09-08 16:02:09 +03:00
shareIcon: "https://garden.struchkov.dev/ru/static/social-sprite-color.svg"
2024-09-02 08:40:46 +03:00
},
darkMode: {
light: "#161618",
lightgray: "#393639",
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
2024-09-06 23:30:43 +03:00
textHighlight: "#8b651d",
2024-09-08 16:02:09 +03:00
shareIcon: "https://garden.struchkov.dev/ru/static/social-sprite.svg"
2024-09-02 08:40:46 +03:00
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["git", "frontmatter"],
2024-09-02 08:40:46 +03:00
}),
Plugin.SyntaxHighlighting({
theme: {
2024-09-06 01:30:04 +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