From 4c904d88aba14d0d153bfac364630ad61832a73d Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 01 Jul 2023 20:35:27 +0000
Subject: [PATCH] rss + sitemap

---
 quartz.config.ts |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/quartz.config.ts b/quartz.config.ts
index 0f2ca8d..f58bc32 100644
--- a/quartz.config.ts
+++ b/quartz.config.ts
@@ -5,7 +5,7 @@
 const sharedPageComponents = {
   head: Component.Head(),
   header: [
-    Component.PageTitle({ title: "🪴 Quartz 4.0" }),
+    Component.PageTitle(),
     Component.Spacer(),
     Component.Search(),
     Component.Darkmode()
@@ -43,7 +43,10 @@
 
 const config: QuartzConfig = {
   configuration: {
+    pageTitle: "🪴 Quartz 4.0",
     enableSPA: true,
+    enablePopovers: true,
+    canonicalUrl: "quartz.jzhao.xyz",
     ignorePatterns: ["private", "templates"],
     theme: {
       typography: { // loaded from Google Fonts
@@ -90,7 +93,7 @@
       Plugin.Description(),
     ],
     filters: [
-      Plugin.RemoveDrafts()
+      Plugin.RemoveDrafts(),
     ],
     emitters: [
       Plugin.AliasRedirects(),
@@ -109,8 +112,10 @@
         ...listPageLayout,
         pageBody: Component.FolderContent(),
       }),
-      Plugin.ContentIndex(), // you can exclude this if you don't plan on using popovers, graph view, or backlinks
-      Plugin.CNAME({ domain: "quartz.jzhao.xyz" }) // set this to your final deployed domain
+      Plugin.ContentIndex({
+        enableSiteMap: true,
+        enableRSS: true,
+      }),
     ]
   },
 }

--
Gitblit v1.10.0