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
og:dynamic:logo-color: dark # optional, dark | light
118
119
og:dynamic:show-logo: true # optional
119
120
og:dynamic:show-section: true # optional
120
121
og:dynamic:show-description: true # optional
@@ -138,6 +139,10 @@ metadata:
138
139
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.
Choose which logo variant to render in dynamically generated OG images. Accepts `dark` or `light`, matching the corresponding entry under the top-level [`logo:` setting](/learn/docs/getting-started/global-configuration#logo-configuration) in your `docs.yml`. Defaults to `dark`. If your `docs.yml` only defines one logo variant, that variant is used regardless of this setting.
Toggle visibility of the logo in dynamically generated OG images. Defaults to `true` when `og:dynamic` is enabled.
143
148
</ParamField>
@@ -158,6 +163,16 @@ metadata:
158
163
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.
159
164
</ParamField>
160
165
166
+
#### Conflicts and precedence
167
+
168
+
When `og:dynamic: true`, the following interactions apply. `fern check` surfaces warnings for each conflict so you can resolve them locally.
169
+
170
+
- `og:image`and `twitter:image` only apply to the homepage. Every other page uses the dynamically generated image.
171
+
- `og:dynamic:*` sub-settings and `og:background-image` are only read when `og:dynamic: true`. If dynamic generation is off, they are ignored.
172
+
- `og:dynamic:logo-color` has no effect when `og:dynamic:show-logo: false`.
173
+
- `og:image:width`and `og:image:height` are only used alongside `og:image`. Setting them without `og:image` is a no-op.
174
+
- `og:dynamic:text-color`must differ from `og:dynamic:background-color`, otherwise the text becomes invisible.
175
+
161
176
### Twitter / X
162
177
163
178
Controls how your docs appear in Twitter Card previews when shared on X.
0 commit comments