Jimin Kim
2023-12-03 f0ec6c9b926dffd0e96b7d53a048d686f6414858
fix: tag index page (#616)

2 files modified
4 ■■■■ changed files
quartz/components/pages/TagContent.tsx 2 ●●● patch | view | raw | blame | history
quartz/plugins/emitters/tagPage.tsx 2 ●●● patch | view | raw | blame | history
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) {
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({