diff --git a/quartz/components/pages/TagContent.tsx b/quartz/components/pages/TagContent.tsx index 4a068c6bc..a495af5c3 100644 --- a/quartz/components/pages/TagContent.tsx +++ b/quartz/components/pages/TagContent.tsx @@ -27,7 +27,7 @@ function TagContent(props: QuartzComponentProps) { ? fileData.description : htmlToJsx(fileData.filePath!, tree) - if (tag === "") { + if (tag === "/") { const tags = [...new Set(allFiles.flatMap((data) => data.frontmatter?.tags ?? []))] const tagItemMap: Map = new Map() for (const tag of tags) { diff --git a/quartz/plugins/emitters/tagPage.tsx b/quartz/plugins/emitters/tagPage.tsx index 6afde2fca..ad5e1d649 100644 --- a/quartz/plugins/emitters/tagPage.tsx +++ b/quartz/plugins/emitters/tagPage.tsx @@ -45,7 +45,7 @@ export const TagPage: QuartzEmitterPlugin = (userOpts) => { const tagDescriptions: Record = Object.fromEntries( [...tags].map((tag) => { - const title = tag === "" ? "Tag Index" : `Tag: #${tag}` + const title = tag === "index" ? "Tag Index" : `Tag: #${tag}` return [ tag, defaultProcessedContent({