ContentExcerptFile #

交给自定义 excerpt 函数的、解析后的 Markdown 文件。

字段 #

dataRecord<string, unknown>

文件的 frontmatter。

contentstring

frontmatter 之后的 Markdown。

excerpt可选string

把想保留的摘录赋给它。

完整类型签名
TypeScript
interface ContentExcerptFile {
  data: Record<string, unknown>
  content: string
  excerpt?: string
}

编辑此页

评论