mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-02-03 22:15:42 -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)
|
.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) {
|
for (const tag of sortedTags) {
|
||||||
const tagFilteredIndex = new Map(
|
const tagFilteredIndex = new Map(
|
||||||
Array.from(linkIndex).filter(([_, content]) => {
|
Array.from(linkIndex).filter(([_, content]) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user