fix: tag index page ()

This commit is contained in:
Jimin Kim 2023-12-04 07:56:30 +09:00 committed by GitHub
parent 9c88d5967f
commit f0ec6c9b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
quartz/components/pages

View file

@ -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<string, QuartzPluginData[]> = new Map()
for (const tag of tags) {