Frontmatter
Fields available at the top of each page.
On this page
---
title: Getting started
description: Learn the basics.
icon: rocket
sidebar:
label: Start here
---| Field | Type | Description |
|---|---|---|
title |
string |
Page title, required |
description |
string |
Shown under the title and used as meta description |
icon |
string |
Name from the icon set, shown in the sidebar |
full |
boolean |
Use the full content width, without the table of contents |
toc |
boolean |
Show the table of contents, true by default |
draft |
boolean |
Only show the page in development, leave it out of builds |
sidebar.label |
string |
Label used in the sidebar instead of the title |
sidebar.hidden |
boolean |
Hide the page from the sidebar |
editUrl |
string | false |
Override or disable the edit link |
lastUpdated |
Date | false |
Override or disable the last updated date |
With the integration, docsSchema() returns a Zod object, so you can add your own fields and read them from Astro.locals.zenith.entry.data in an override or a slot:
import { z } from 'astro/zod';
const schema = docsSchema().extend({
authors: z.array(z.string()).optional(),
});