Content types
Use collections to publish blogs, courses, products, and more alongside your docs.
Blode.md supports more than just documentation. You can publish blogs, courses, product pages, and other content types by defining collections in your configuration. Each collection has its own content directory, URL prefix, and navigation structure.
Collections use the SiteConfig format with a top-level collections array. Each collection is an object with its own id, type, and content root:
{
"collections": [
{
"id": "docs",
"type": "docs",
"root": "content/docs",
"slugPrefix": "/docs",
"navigation": {
"groups": [
{ "group": "Getting started", "pages": ["index", "quickstart"] }
]
}
},
{
"id": "blog",
"type": "blog",
"root": "content/blog",
"slugPrefix": "/blog",
"sort": "date:desc",
"index": true
}
]
}| Type | Use case |
|---|---|
site | General-purpose website pages |
docs | Documentation with sidebar navigation |
blog | Blog posts sorted by date |
courses | Ordered learning content with progress |
products | Product pages with pricing and metadata |
notes | Short-form notes and snippets |
forms | Form pages with input fields |
sheets | Spreadsheet-style data pages |
slides | Presentation slides |
todos | Task lists and checklists |
Each collection type supports additional frontmatter fields beyond the standard title and description.
---
title: Launch week recap
description: Everything we shipped this week.
date: 2025-01-15
tags:
- announcements
- releases
author: Jane Smith
image: /images/launch-week.png
---Here is a complete docs.json that defines both documentation and a blog:
{
"name": "my-project",
"theme": "mint",
"colors": { "primary": "#0D9373" },
"collections": [
{
"id": "docs",
"type": "docs",
"root": "content/docs",
"slugPrefix": "/docs",
"navigation": {
"groups": [
{
When you use the collections array, it replaces the top-level navigation
field. Each collection manages its own navigation independently.
navigation | object | Navigation structure for this collection. Same format as the top-level navigation. | Yes | — |
sort | string | Sort order for listing pages. Format: "field:direction" (e.g., "date:desc"). | Yes | — |
index | boolean | Whether to auto-generate an index page listing all pages in the collection. | Yes | false |