From ab9da02c60c962128820e6874e6f07c98bc3dda7 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 04 Jul 2023 17:08:32 +0000
Subject: [PATCH] fix indexing causing main thread freeze, various polish
---
quartz.config.ts | 47 +++++++++++++++++++++++++++++------------------
1 files changed, 29 insertions(+), 18 deletions(-)
diff --git a/quartz.config.ts b/quartz.config.ts
index 0f2ca8d..18f2533 100644
--- a/quartz.config.ts
+++ b/quartz.config.ts
@@ -4,12 +4,7 @@
const sharedPageComponents = {
head: Component.Head(),
- header: [
- Component.PageTitle({ title: "🪴 Quartz 4.0" }),
- Component.Spacer(),
- Component.Search(),
- Component.Darkmode()
- ],
+ header: [],
footer: Component.Footer({
authorName: "Jacky",
links: {
@@ -25,11 +20,15 @@
Component.ReadingTime(),
Component.TagList(),
],
- left: [],
+ left: [
+ Component.PageTitle(),
+ Component.Search(),
+ Component.Darkmode(),
+ Component.DesktopOnly(Component.TableOfContents()),
+ ],
right: [
Component.Graph(),
- Component.TableOfContents(),
- Component.Backlinks()
+ Component.Backlinks(),
],
}
@@ -37,13 +36,23 @@
beforeBody: [
Component.ArticleTitle()
],
- left: [],
+ left: [
+ Component.PageTitle(),
+ Component.Search(),
+ Component.Darkmode()
+ ],
right: [],
}
const config: QuartzConfig = {
configuration: {
+ pageTitle: "🪴 Quartz 4.0",
enableSPA: true,
+ enablePopovers: true,
+ analytics: {
+ provider: 'plausible',
+ },
+ canonicalUrl: "quartz.jzhao.xyz",
ignorePatterns: ["private", "templates"],
theme: {
typography: { // loaded from Google Fonts
@@ -90,7 +99,7 @@
Plugin.Description(),
],
filters: [
- Plugin.RemoveDrafts()
+ Plugin.RemoveDrafts(),
],
emitters: [
Plugin.AliasRedirects(),
@@ -99,18 +108,20 @@
...contentPageLayout,
pageBody: Component.Content(),
}),
- Plugin.TagPage({
- ...sharedPageComponents,
- ...listPageLayout,
- pageBody: Component.TagContent(),
- }),
Plugin.FolderPage({
...sharedPageComponents,
...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.TagPage({
+ ...sharedPageComponents,
+ ...listPageLayout,
+ pageBody: Component.TagContent(),
+ }),
+ Plugin.ContentIndex({
+ enableSiteMap: true,
+ enableRSS: true,
+ }),
]
},
}
--
Gitblit v1.10.0