public_notes/quartz.config.ts

82 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-07-26 15:37:24 +09:00
import { QuartzConfig } from "./quartz/cfg"
2023-06-10 15:06:02 +09:00
import * as Plugin from "./quartz/plugins"
2023-05-31 00:02:20 +09:00
2023-07-26 15:37:24 +09:00
const config: QuartzConfig = {
configuration: {
2024-02-12 11:53:25 +09:00
pageTitle: "kazbo public notes",
2023-07-26 15:37:24 +09:00
enableSPA: true,
enablePopovers: true,
analytics: {
2024-02-12 11:53:25 +09:00
provider: "google",
tagId: "G-JVXFC0DCRE",
2023-07-10 11:32:24 +09:00
},
2024-02-12 12:23:12 +09:00
locale: "en-US",
2024-02-12 11:53:25 +09:00
baseUrl: "kinoshita-lab.github.io/public_notes",
ignorePatterns: ["private", "templates", ".obsidian", "obsidian_templates_"],
defaultDateType: "modified",
2023-07-26 15:37:24 +09:00
theme: {
typography: {
2024-02-12 11:53:25 +09:00
header: "Noto Serif JP",
body: "Noto Serif JP",
code: "Noto Mono",
2023-07-10 11:32:24 +09:00
},
2023-07-26 15:37:24 +09:00
colors: {
lightMode: {
light: "#faf8f8",
lightgray: "#e5e5e5",
2024-02-12 11:53:25 +09:00
gray: "#000000",
darkgray: "#000000",
dark: "#000000",
2023-07-26 15:37:24 +09:00
secondary: "#284b63",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
},
darkMode: {
light: "#161618",
lightgray: "#393639",
2024-02-12 11:53:25 +09:00
gray: "#ffffff",
darkgray: "#ffffff",
dark: "#ffffff",
2023-07-26 15:37:24 +09:00
secondary: "#7b97aa",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
},
2023-07-10 11:32:24 +09:00
},
2023-07-23 09:27:41 +09:00
},
},
2023-05-31 00:02:20 +09:00
plugins: {
transformers: [
Plugin.FrontMatter(),
2024-02-12 11:53:25 +09:00
Plugin.TableOfContents(),
Plugin.CreatedModifiedDate({
2024-01-08 08:39:29 +09:00
// you can add 'git' here for last modified from Git
// if you do rely on git for dates, ensure defaultDateType is 'modified'
2024-02-12 11:53:25 +09:00
priority: ["git"],
}),
2023-12-20 12:03:40 +09:00
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting(),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
2023-06-20 12:37:45 +09:00
Plugin.GitHubFlavoredMarkdown(),
2023-07-23 09:27:41 +09:00
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
2023-06-20 12:37:45 +09:00
Plugin.Description(),
2023-05-31 00:02:20 +09:00
],
2023-07-23 09:27:41 +09:00
filters: [Plugin.RemoveDrafts()],
2023-05-31 00:02:20 +09:00
emitters: [
2023-06-17 11:41:59 +09:00
Plugin.AliasRedirects(),
2023-07-25 13:54:47 +09:00
Plugin.ComponentResources({ fontOrigin: "googleFonts" }),
2023-07-26 15:37:24 +09:00
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.TagPage(),
2023-07-02 05:35:27 +09:00
Plugin.ContentIndex({
2024-02-12 11:53:25 +09:00
enableSiteMap: false,
2023-07-02 05:35:27 +09:00
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
2023-09-07 13:02:21 +09:00
Plugin.NotFoundPage(),
2023-07-23 09:27:41 +09:00
],
2023-05-31 00:02:20 +09:00
},
2023-06-05 01:35:45 +09:00
}
export default config