Skip to content

Commit

Permalink
Add docs for frontmatter logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Belkadi committed Dec 12, 2024
1 parent ea8bc8f commit ecf8d4d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fern/pages/fern-docs/content/front-matter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,28 @@ Controls the conditional rendering of the on-page feedback form at the bottom of
<img src="./on-page-feedback.png" alt="On-page feedback feature" />
</Frame>

## Page logo

**Name**: `logo`<br />
**Type**: object<br />
**Default**: None

You can override the site-wide logo for a page by setting a field named `logo` in any page's frontmatter like this:

<CodeBlock title='index.mdx logo example'>

```mdx
---
logo:
light: /path/to/page-logo.png
dark: /path/to/page-logo.png
---
```

</CodeBlock>

This field specifies the logo for this page. If no logo is set, the site-wide [logo configuration](/learn/docs/getting-started/global-configuration#logo-configuration) is used.

## SEO metadata

Fern also supports adding SEO-specific metadata in the frontmatter.
Expand Down

0 comments on commit ecf8d4d

Please sign in to comment.