fix(contentIndex): explorer compat

This commit is contained in:
bfahrenfort 2025-03-17 13:11:09 -05:00
parent 96a634eb41
commit 53602442c0

View File

@ -13,7 +13,7 @@ import { ProcessedContent } from "../vfile"
type ContentIndex = Tree<TreeNode> type ContentIndex = Tree<TreeNode>
export type ContentDetails = { export type ContentDetails = {
slug?: FullSlug slug: FullSlug
filePath: FilePath filePath: FilePath
title: string title: string
links: SimpleSlug[] links: SimpleSlug[]
@ -246,9 +246,7 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
delete content.date delete content.date
delete content.noRSS delete content.noRSS
var slug = content.slug return [content.slug, content]
delete content.slug
return [slug, content]
}), }),
) )
emitted.push( emitted.push(