Entries


Entries are defined by Markdown files and are stored in a subdirectory of the content directory of your site. The subdirectory will have the same name as the collection ID. For example, the entries for a posts collection will be stored in the content/posts directory.

The ID of an entry is defined by the file name of the entry. For example, the entry file an-example-post.md has an ID of an-example-post. This ID, or slug, will be used when creating a route for the entry.

Entry files are split into two parts:

  1. The first part is made up of Yaml frontmatter
  2. The second part is the Markdown content

For example, a blog post entry might look like this:

Every entry will have a title field by default. Other fields can be added as required (to sort a collection for example).