---
title: "Writing Content"
description: "Writing content in the system allows you to manage both the body text of your documents and supplementary metadata using a standard format. By using a structured header at the top of your document,..."
last_updated: "2026-07-02T09:48:33.590848+00:00"
canonical_url: "https://www.doc0.dev/docs/e8872a72-1909-479c-b585-dc74c6e26726/guide/core-features/writing-content"
---

Writing content in the system allows you to manage both the body text of your documents and supplementary metadata using a standard format. By using a structured header at the top of your document, you can define specific properties that help organize and identify your content.

## Using Frontmatter
Frontmatter is a block of text at the very top of your file that contains settings or details about the document, such as the title, date, or author. The system automatically separates this information from the main body of your text.

To use frontmatter, you must place your settings between two lines consisting of three dashes (`---`). The content inside must be formatted in YAML, which is a simple way of listing labels and values.

## How to Add Frontmatter
1. Open your document editor.
2. At the very top of the file, type `---`.
3. Enter your metadata in a key-value format (for example: `title: My Document`).
4. Type another `---` on a new line to close the metadata block.
5. Begin typing your main document content immediately after the second `---` line.

## Understanding Key Concepts
* **Frontmatter:** A block of data at the start of a document that defines properties for that specific page or post.
* **YAML:** A human-readable data format used within the frontmatter to define attributes. It relies on a simple `key: value` structure.
* **Content:** The actual body of your writing, which starts after the frontmatter section is closed.

## Example Configuration
Here is how your document should look when using frontmatter:

```yaml
---
title: How to Write Content
date: 2023-10-27
author: Jane Doe
---

# Welcome
This is the main content of your document. The text above is the metadata.
```

## Essential Tips and Warnings

> [!IMPORTANT]
> The frontmatter block must start on the very first line of your file. If you have any empty spaces or lines before the first set of three dashes, the system will not recognize the metadata.

> [!WARNING]
> Ensure you use exactly three dashes (`---`) for both the opening and closing delimiters. If the formatting is incorrect, the system will treat your metadata as part of the main document text.

> [!TIP]
> Keep your metadata keys and values simple. Use one line per property, such as `category: Tutorial` or `published: true`.

## Related

- [Interactive MDX](https://www.doc0.dev/docs/e8872a72-1909-479c-b585-dc74c6e26726/guide/how-to-guides/interactive-mdx)


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/e8872a72-1909-479c-b585-dc74c6e26726/llms.txt) for all pages in this wiki.
