| | |
| | | import { buildQuartz } from "./quartz" |
| | | import Head from "./quartz/components/Head" |
| | | import { ContentPage, CreatedModifiedDate, Description, FrontMatter, GitHubFlavoredMarkdown, Katex, RemoveDrafts } from "./quartz/plugins" |
| | | import { ResolveLinks } from "./quartz/plugins/transformers/links" |
| | | import { ObsidianFlavoredMarkdown } from "./quartz/plugins/transformers/ofm" |
| | | import { ContentPage, CreatedModifiedDate, Description, FrontMatter, GitHubFlavoredMarkdown, Katex, ObsidianFlavoredMarkdown, RemoveDrafts, ResolveLinks } from "./quartz/plugins" |
| | | |
| | | export default buildQuartz({ |
| | | configuration: { |
| | | siteTitle: "🪴 Quartz 4.0", |
| | | enableSPA: true, |
| | | ignorePatterns: ["private", "templates"], |
| | | }, |
| | | plugins: { |
| | | transformers: [ |
| | | new FrontMatter(), |
| | | new Katex(), |
| | | new Description(), |
| | | new CreatedModifiedDate({ |
| | | priority: ['frontmatter', 'filesystem'] // you can add 'git' here for last modified from Git but this makes the build slower |
| | | }), |
| | | new GitHubFlavoredMarkdown(), |
| | | new ObsidianFlavoredMarkdown(), |
| | | new ResolveLinks(), |
| | | ], |
| | | filters: [ |
| | | new RemoveDrafts() |
| | | ], |
| | | emitters: [ |
| | | new ContentPage({ |
| | | Head: Head |
| | | }) |
| | | ] |
| | | }, |
| | | theme: { |
| | | typography: { // loaded from Google Fonts |
| | | header: "Schibsted Grotesk", |
| | |
| | | }, |
| | | } |
| | | } |
| | | }, |
| | | plugins: { |
| | | transformers: [ |
| | | new FrontMatter(), |
| | | new Katex(), |
| | | new Description(), |
| | | new CreatedModifiedDate({ |
| | | priority: ['frontmatter', 'filesystem'] // you can add 'git' here for last modified from Git but this makes the build slower |
| | | }), |
| | | new GitHubFlavoredMarkdown(), |
| | | new ObsidianFlavoredMarkdown(), |
| | | new ResolveLinks(), |
| | | ], |
| | | filters: [ |
| | | new RemoveDrafts() |
| | | ], |
| | | emitters: [ |
| | | new ContentPage({ |
| | | Head: Head |
| | | }) |
| | | ] |
| | | }, |
| | | }) |