Content and formats
Content collections
Content collections are groups of content files of the same type, such as posts, pages, or case studies, with a shared schema for their fields.
Content model
A content model defines the types of content on a website and the fields each type has, such as a blog post with a title, date, author, and body.
Data files
Data files are structured files, usually JSON, YAML, or TOML, that hold site-wide data such as navigation, pricing, team members, or testimonials.
Frontmatter
Frontmatter is the block of structured fields, usually YAML or TOML, at the top of a Markdown file, holding data like title, date, and description.
JSON
JSON (JavaScript Object Notation) is a strict, widely supported data format of objects, arrays, strings, numbers, and booleans.
Markdown
Markdown is a plain-text format for writing formatted content, using simple symbols like # for headings and * for lists, that converts cleanly to HTML.
MDX
MDX is Markdown that can also include JSX components, letting content files embed interactive or custom elements like callouts, tabs, or charts.
Structured content
Structured content is content broken into typed fields, such as headline, price, and summary, instead of one block of formatted text.
TOML
TOML is a configuration file format designed to be easy to read, using key = value pairs grouped into [sections].
YAML
YAML is a human-readable data format that uses indentation and key: value pairs, widely used for frontmatter and configuration files.