Jacky Zhao
2024-01-15 f31cabbbf9b0d438710618a3edd2a4eaaae09d7d
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))