mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-02-04 06:25:41 -06:00
Update quartz/plugins/emitters/contentIndex.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
1d1c1f1ca9
commit
bb23824ab3
@ -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]) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user