From f0ec6c9b926dffd0e96b7d53a048d686f6414858 Mon Sep 17 00:00:00 2001
From: Jimin Kim <88694161+jmkim0@users.noreply.github.com>
Date: Sun, 03 Dec 2023 22:56:30 +0000
Subject: [PATCH] fix: tag index page (#616)

---
 quartz/plugins/emitters/tagPage.tsx    |    2 +-
 quartz/components/pages/TagContent.tsx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/components/pages/TagContent.tsx b/quartz/components/pages/TagContent.tsx
index 4a068c6..a495af5 100644
--- a/quartz/components/pages/TagContent.tsx
+++ b/quartz/components/pages/TagContent.tsx
@@ -27,7 +27,7 @@
       ? fileData.description
       : htmlToJsx(fileData.filePath!, tree)
 
-  if (tag === "") {
+  if (tag === "/") {
     const tags = [...new Set(allFiles.flatMap((data) => data.frontmatter?.tags ?? []))]
     const tagItemMap: Map<string, QuartzPluginData[]> = new Map()
     for (const tag of tags) {
diff --git a/quartz/plugins/emitters/tagPage.tsx b/quartz/plugins/emitters/tagPage.tsx
index 6afde2f..ad5e1d6 100644
--- a/quartz/plugins/emitters/tagPage.tsx
+++ b/quartz/plugins/emitters/tagPage.tsx
@@ -45,7 +45,7 @@
 
       const tagDescriptions: Record<string, ProcessedContent> = Object.fromEntries(
         [...tags].map((tag) => {
-          const title = tag === "" ? "Tag Index" : `Tag: #${tag}`
+          const title = tag === "index" ? "Tag Index" : `Tag: #${tag}`
           return [
             tag,
             defaultProcessedContent({

--
Gitblit v1.10.0