fix(tags): Set consistent titles for tags with description pages (#1671)
This commit is contained in:
		@@ -105,6 +105,9 @@ export const TagPage: QuartzEmitterPlugin<Partial<TagPageOptions>> = (userOpts)
 | 
				
			|||||||
          const tag = slug.slice("tags/".length)
 | 
					          const tag = slug.slice("tags/".length)
 | 
				
			||||||
          if (tags.has(tag)) {
 | 
					          if (tags.has(tag)) {
 | 
				
			||||||
            tagDescriptions[tag] = [tree, file]
 | 
					            tagDescriptions[tag] = [tree, file]
 | 
				
			||||||
 | 
					            if (file.data.frontmatter?.title === tag) {
 | 
				
			||||||
 | 
					              file.data.frontmatter.title = `${i18n(cfg.locale).pages.tagContent.tag}: ${tag}`
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user