mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-22 04:14:06 -06:00
fix(contentIndex): explorer compat
This commit is contained in:
parent
96a634eb41
commit
53602442c0
@ -13,7 +13,7 @@ import { ProcessedContent } from "../vfile"
|
||||
|
||||
type ContentIndex = Tree<TreeNode>
|
||||
export type ContentDetails = {
|
||||
slug?: FullSlug
|
||||
slug: FullSlug
|
||||
filePath: FilePath
|
||||
title: string
|
||||
links: SimpleSlug[]
|
||||
@ -246,9 +246,7 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
|
||||
delete content.date
|
||||
delete content.noRSS
|
||||
|
||||
var slug = content.slug
|
||||
delete content.slug
|
||||
return [slug, content]
|
||||
return [content.slug, content]
|
||||
}),
|
||||
)
|
||||
emitted.push(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user