Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion fern/products/docs/pages/customization/frontmatter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subtitle: Set titles, add meta descriptions, and more
description: Use frontmatter to set a variety of page properties and metadata.
---

You can optionally use frontmatter to set each page's title, full slug override, meta description, a URL to suggest edits to the page, and its OpenGraph image. You can also use frontmatter to disable certain page elements like the table of contents and on-page feedback. For advanced styling and functionality customizations beyond frontmatter options, see [custom CSS and JavaScript](/docs/customization/custom-css-js).
You can optionally use frontmatter to set each page's title, full slug override, meta description, a URL to suggest edits to the page, and its OpenGraph image. You can also use frontmatter to disable certain page elements like the table of contents, on-page feedback, and page actions. For advanced styling and functionality customizations beyond frontmatter options, see [custom CSS and JavaScript](/docs/customization/custom-css-js).

Frontmatter must be added to the top of a `.md` or `.mdx` file, before the rest of the content. Use sets of three dashes to indicate the beginning and end of your frontmatter, as shown:

Expand Down Expand Up @@ -235,6 +235,22 @@ hide-feedback: true
<img src="./on-page-feedback.png" alt="Leave feedback feature" />
</Frame>

## Page actions
<ParamField path="hide-page-actions" type="boolean" required={false} default={false}>
Controls the conditional rendering of page action buttons (Copy Page, View as Markdown, Ask AI). Set to true to turn off page actions for an individual page.

Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file.
</ParamField>

<CodeBlock title="docs/getting-started/overview.mdx">
```mdx
---
title: Overview
hide-page-actions: true
---
```
</CodeBlock>

## Page logo
<ParamField path="logo" type="object" required={false}>
Override the site-wide logo for a page. Specify different logos for light and dark modes using absolute URLs.
Expand Down