You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/changelog/2026-03-17.mdx
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,26 @@
2
2
tags: ["seo", "configuration", "docs.yml"]
3
3
---
4
4
5
-
## Dynamic OG image color overrides <Availabilitytype="beta" /> [#og-color-overrides]
5
+
## Redesigned dynamic OG images <Availabilitytype="beta" /> [#og-image-redesign]
6
6
7
-
Control the text and background colors of dynamically generated OG images. Set `og:dynamic:text-color` and `og:dynamic:background-color` in your `docs.yml` metadata to override the auto-detected theme colors. This is useful when your site has a light background where the default white text is hard to read.
7
+
Dynamic OG images have a new layout with more content and fine-grained control:
8
+
9
+
-**Section title** derived from the page's navigation breadcrumb, styled with your accent color
10
+
-**Page description** extracted from frontmatter, clamped to two lines
11
+
-**Page URL** displayed below the description
12
+
-**Dark mode default** with a subtle accent gradient overlay
13
+
-**Toggle flags** to show or hide individual elements (logo, section, description, URL, gradient)
8
14
9
15
```yaml docs.yml
10
16
metadata:
11
17
og:dynamic: true
12
18
og:dynamic:text-color: "#1a1a1a"
13
19
og:dynamic:background-color: "#ffffff"
20
+
og:dynamic:show-logo: true
21
+
og:dynamic:show-section: true
22
+
og:dynamic:show-description: true
23
+
og:dynamic:show-url: true
24
+
og:dynamic:show-gradient: true
14
25
```
15
26
16
27
<Button intent="none" outlined rightIcon="arrow-right" href="/learn/docs/seo/setting-seo-metadata#dynamic-og-images">Read the docs</Button>
Override the background color for dynamically generated OG images. Accepts any valid CSS color value (e.g., `"#ffffff"`). By default, Fern uses your site's theme background color.
Toggle visibility of the section title in dynamically generated OG images. The section title is derived from the page's navigation breadcrumb. Defaults to `true` when `og:dynamic` is enabled.
Toggle visibility of the page description in dynamically generated OG images. The description is extracted from the page's frontmatter (`description`, `subtitle`, or `excerpt`). Defaults to `true` when `og:dynamic` is enabled.
Toggle visibility of the accent gradient overlay in dynamically generated OG images. The gradient uses your accent color. Defaults to `true` when `og:dynamic` is enabled.
160
+
</ParamField>
161
+
137
162
### Twitter / X
138
163
139
164
Controls how your docs appear in Twitter Card previews when shared on X.
0 commit comments