mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix: tag index page (#616)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,7 @@ export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
 | 
			
		||||
 | 
			
		||||
      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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user