Skip to content
Merged
Changes from 2 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 the page action buttons (such as Copy Page, View as Markdown, and Ask AI) on the page. Set to true to hide page actions for that page.

Page actions can be configured globally in the [global configuration](/learn/docs/configuration/site-level-settings#page-actions-configuration).
</ParamField>

<CodeBlock title="Example hide-page-actions">
```mdx
---
title: Landing Page
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