ContentExcerptFile #

A parsed Markdown file given to a custom excerpt function.

Fields #

dataRecord<string, unknown>

The frontmatter of the file.

contentstring

The Markdown after the frontmatter.

excerptoptionalstring

Set this to the excerpt you want to keep.

Full type signature
TypeScript
interface ContentExcerptFile {
  data: Record<string, unknown>
  content: string
  excerpt?: string
}

Edit this page

Comments