From 352075ae81a3304a7bfa2512ef69b1cdacb26c12 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 12 Jun 2023 06:26:43 +0000
Subject: [PATCH] refactor plugins to be functions instead of classes
---
quartz.config.ts | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/quartz.config.ts b/quartz.config.ts
index 3a1d433..ab7e990 100644
--- a/quartz.config.ts
+++ b/quartz.config.ts
@@ -39,23 +39,23 @@
},
plugins: {
transformers: [
- new Plugin.FrontMatter(),
- new Plugin.Description(),
- new Plugin.TableOfContents({ showByDefault: true }),
- new Plugin.CreatedModifiedDate({
+ Plugin.FrontMatter(),
+ Plugin.Description(),
+ Plugin.TableOfContents({ showByDefault: true }),
+ Plugin.CreatedModifiedDate({
priority: ['frontmatter', 'filesystem'] // you can add 'git' here for last modified from Git but this makes the build slower
}),
- new Plugin.GitHubFlavoredMarkdown(),
- new Plugin.ObsidianFlavoredMarkdown(),
- new Plugin.ResolveLinks(),
- new Plugin.SyntaxHighlighting(),
- new Plugin.Katex(),
+ Plugin.GitHubFlavoredMarkdown(),
+ Plugin.ObsidianFlavoredMarkdown(),
+ Plugin.ResolveLinks(),
+ Plugin.SyntaxHighlighting(),
+ Plugin.Katex(),
],
filters: [
- new Plugin.RemoveDrafts()
+ Plugin.RemoveDrafts()
],
emitters: [
- new Plugin.ContentPage({
+ Plugin.ContentPage({
head: Component.Head,
header: [Component.PageTitle, Component.Spacer, Component.Darkmode],
body: [Component.ArticleTitle, Component.ReadingTime, Component.TableOfContents, Component.Content]
--
Gitblit v1.10.0