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:35:45 +05:30 committed by GitHub
parent 1d1c1f1ca9
commit bb23824ab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,6 +172,16 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
.map(([tag]) => tag)
}
if (
sortedTags.length === 0 &&
(!opts.rssTags || opts.rssTags.length === 0) &&
(opts.rssTagsLimit ?? 0) <= 0
) {
console.warn(
"[contentIndex] includeTags is enabled, but no tag-based RSS feeds will be generated. " +
"Either provide non-empty `rssTags` or set `rssTagsLimit` to a positive number.",
)
}
for (const tag of sortedTags) {
const tagFilteredIndex = new Map(
Array.from(linkIndex).filter(([_, content]) => {