mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-22 12:24:05 -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>
|
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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user