Skip to content

Commit

Permalink
fix(tags): Set consistent titles for tags with description pages (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
necauqua authored Dec 27, 2024
1 parent 69a0ddf commit 7533d50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quartz/plugins/emitters/tagPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export const TagPage: QuartzEmitterPlugin<Partial<TagPageOptions>> = (userOpts)
const tag = slug.slice("tags/".length)
if (tags.has(tag)) {
tagDescriptions[tag] = [tree, file]
if (file.data.frontmatter?.title === tag) {
file.data.frontmatter.title = `${i18n(cfg.locale).pages.tagContent.tag}: ${tag}`
}
}
}
}
Expand Down

0 comments on commit 7533d50

Please sign in to comment.