From 6424d28d0564a46cfcb618c80b021742083d8bf6 Mon Sep 17 00:00:00 2001 From: bfahrenfort Date: Wed, 14 Feb 2024 13:59:32 -0600 Subject: [PATCH] fix: type comparison --- quartz/plugins/emitters/contentIndex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/emitters/contentIndex.ts b/quartz/plugins/emitters/contentIndex.ts index dd3693bf8..2efdea443 100644 --- a/quartz/plugins/emitters/contentIndex.ts +++ b/quartz/plugins/emitters/contentIndex.ts @@ -120,7 +120,7 @@ export const ContentIndex: QuartzEmitterPlugin> = (opts) => { }, async emit(ctx, content, _resources) { // If we're missing an index file, don't bother with sitemap/RSS gen - if (!(opts?.bypassIndexCheck || "index" in content.map((c) => c[1].data.slug!))) { + if (!(opts?.bypassIndexCheck || content.map((c) => c[1].data.slug!).includes("index" as FullSlug))) { console.warn( chalk.yellow(`Warning: contentIndex: content/ folder is missing an index.md. RSS feeds and sitemap will not be generated.