diff --git a/quartz/plugins/emitters/contentIndex.ts b/quartz/plugins/emitters/contentIndex.ts index 511871e2b..15561486b 100644 --- a/quartz/plugins/emitters/contentIndex.ts +++ b/quartz/plugins/emitters/contentIndex.ts @@ -128,7 +128,10 @@ export const ContentIndex: QuartzEmitterPlugin> = (opts) => { const slug = file.data.slug! const date = getDate(ctx.cfg.configuration, file.data) ?? new Date() - if ((opts?.includeEmptyFiles || (file.data.text && file.data.text !== "")) && (slug.startsWith(feed) || feed == "index")) { + if ( + (opts?.includeEmptyFiles || (file.data.text && file.data.text !== "")) && + (slug.startsWith(feed) || feed == "index") + ) { linkIndex.set(slug, { title: file.data.frontmatter?.title!, links: file.data.links ?? [], @@ -170,7 +173,7 @@ export const ContentIndex: QuartzEmitterPlugin> = (opts) => { const fp = joinSegments("static", "contentIndex") as FullSlug const simplifiedIndex = Object.fromEntries( - Array.from(feedIndices.get("index") ?? [] ).map(([slug, content]) => { + Array.from(feedIndices.get("index") ?? []).map(([slug, content]) => { // remove description and from content index as nothing downstream // actually uses it. we only keep it in the index as we need it // for the RSS feed