From c1b7ef4f6fbe67c9bbfc97a9b81858dc06f00cd5 Mon Sep 17 00:00:00 2001 From: bfahrenfort Date: Fri, 6 Oct 2023 15:57:37 -0500 Subject: [PATCH] Formatting --- quartz/plugins/emitters/contentIndex.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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