---
title: Frontmatter
description: How to write frontmatter for metadata available in DocuBook
---
your content here...
Below is a table of available frontmatter fields for documentation pages:
| Field Name | Type | Required | Description |
|---|
| title | string | Yes | The page title, displayed in the header and metadata. |
| description | string | Yes | A short description of the page, used for SEO and previews. |
| image | string (URL) | No | Per-page OG image (og:image) for social sharing. Falls back to meta.ogImage in docu.json. See examples below for accepted path formats. |
| date | string | No | Publication date in YYYY-MM-DD format (e.g. 2026-06-10). If omitted, resolves from: git log → filesystem mtime → hidden. |
Image path examples
image: https://example.com/images/og.png
image: /assets/og.png
image: ./images/card.png
image: ./assets/images/page-content-1.png