From 5dcb7e83fc3c8383ebbc84aac4553df4ad3ef59a Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 15 Sep 2023 16:46:06 +0000
Subject: [PATCH] fix: use git dates by default, @napi/git is fast enough

---
 quartz.config.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/quartz.config.ts b/quartz.config.ts
index bd7abfb..8674bc6 100644
--- a/quartz.config.ts
+++ b/quartz.config.ts
@@ -10,7 +10,8 @@
       provider: "plausible",
     },
     baseUrl: "quartz.jzhao.xyz",
-    ignorePatterns: ["private", "templates"],
+    ignorePatterns: ["private", "templates", ".obsidian"],
+    defaultDateType: "created",
     theme: {
       typography: {
         header: "Schibsted Grotesk",
@@ -46,7 +47,7 @@
       Plugin.FrontMatter(),
       Plugin.TableOfContents(),
       Plugin.CreatedModifiedDate({
-        priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower
+        priority: ["frontmatter", "git", "filesystem"],
       }),
       Plugin.SyntaxHighlighting(),
       Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
@@ -66,8 +67,9 @@
         enableSiteMap: true,
         enableRSS: true,
       }),
-      Plugin.Assets({ attachmentsFolder: "attachments" }),
+      Plugin.Assets(),
       Plugin.Static(),
+      Plugin.NotFoundPage(),
     ],
   },
 }

--
Gitblit v1.10.0