docs/api

post

A post object represents the markdown content and the metadata.

data Object

The post metadata is encapsulated in the data property. This includes the following properties plus any other defined by the user:

  • url: {String} the generated url for the post.
  • category: {String} is the post's category. When not specified, if the post is inside a folder, the directory structure under /posts will be used.
  • date: {String} JSON date from frontmatter's date or date in file name or file creation date.
  • name: {String} the file name. Date is removed from name if present.

raw String

The markdown raw content.

content Object

The HAST (Hypertext Abstract Syntax Tree) representation of the markdown content.