Update quartz/plugins/emitters/contentIndex.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Suryaansh Rai 2026-01-17 22:34:53 +05:30 committed by GitHub
parent d80a863a77
commit 1d1c1f1ca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,7 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
} else if ((opts.rssTagsLimit ?? 0) > 0) {
const tagCounts: Map<string, number> = new Map()
// Count tags from all non-empty files (unless includeEmptyFiles is true)
// Count tag occurrences across all files in the index
for (const [_, content] of linkIndex) {
const tags = content.tags.flatMap(getAllSegmentPrefixes)
for (const tag of new Set(tags)) {