Jacky Zhao
2023-12-17 d2be097b7698c2548915c386aab07ceb320855aa
quartz/components/pages/TagContent.tsx
@@ -28,7 +28,11 @@
      : htmlToJsx(fileData.filePath!, tree)
  if (tag === "/") {
    const tags = [...new Set(allFiles.flatMap((data) => data.frontmatter?.tags ?? []))]
    const tags = [
      ...new Set(
        allFiles.flatMap((data) => data.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes),
      ),
    ].sort((a, b) => a.localeCompare(b))
    const tagItemMap: Map<string, QuartzPluginData[]> = new Map()
    for (const tag of tags) {
      tagItemMap.set(tag, allPagesWithTag(tag))