Most themes use Astro Content Collections — Markdown files that become typed, queryable data.
How Content Collections Work
A content collection is a folder of Markdown files in src/content/. For example:
src/content/blog/
├── launching-our-product.md
├── design-system-guide.md
└── why-we-chose-astro.md
Each file has frontmatter (metadata) at the top, followed by Markdown content:
---
title: Launching Our Product
description: The story behind our first release.
date: 2026-01-20
category: business
---
We spent six months building this. Here's what we learned.
## The Problem
When we started, we noticed that...
Adding a New Article
- Create a new
.mdfile insrc/content/blog/ - Give it a filename (this becomes the URL slug):
my-new-post.md→/blog/my-new-post/ - Fill in the frontmatter fields
- Write your content in Markdown below the
---
That’s it. The article automatically appears on the blog index page.
Frontmatter Fields
Each theme defines its own schema. Common fields:
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Article title |
description | string | Yes | Short summary for SEO and cards |
date | string | Yes | Publish date (YYYY-MM-DD) |
category | enum | Yes | Section/category slug |
cover | string | No | Path to cover image |
draft | boolean | No | If true, won’t be published |
Check your theme’s src/content.config.ts for the exact schema.
Drafts
Set draft: true in frontmatter to keep an article out of production:
---
title: Work in Progress
description: Not ready yet.
date: 2026-02-01
category: insight
draft: true
---
Draft articles won’t appear in the build output.
Markdown Tips
Astro supports standard Markdown plus a few extras:
- Bold and italic text
- Links
inline code- Headings with
##and### - Images:
 - Ordered and unordered lists
- Tables
- Blockquotes with
>
Using a CMS
If you prefer a visual editor instead of writing Markdown, you can connect a headless CMS. LiteInk themes work well with:
- Ink CMS — Our open-source CMS built for Astro (GitHub)
- Keystatic — Git-based CMS that writes Markdown files
- Decap CMS — Git-based, works with GitHub
See the Ink CMS guide for setup instructions.
What’s Next?
- Deployment — Ship your site
- SEO Guide — Optimize for search engines