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: settings/seo.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You can set default meta tags by adding the `metadata` field to your `docs.json`
20
20
```json
21
21
"seo": {
22
22
"metatags": {
23
-
"og:image": "link to your default meta tag image"
23
+
"og:image": "https://example.com/og-image.jpg"
24
24
}
25
25
}
26
26
```
@@ -32,14 +32,18 @@ Add your meta tags to the page's metadata like so:
32
32
```mdx
33
33
---
34
34
title: 'Your Example Page Title'
35
-
'og:image': 'link to your meta tag image'
35
+
'og:image': 'https://example.com/og-image.jpg'
36
36
---
37
37
```
38
38
39
39
<Warning>
40
40
Meta tags with colons need to be typed with quotes around them when you put them in the page metadata.
41
41
</Warning>
42
42
43
+
<Note>
44
+
`og:image` URLs must be absolute (starting with `https://`) for proper social media sharing.
45
+
</Note>
46
+
43
47
## Common Meta Tags Reference
44
48
Below is a comprehensive list of meta tags you can add to your `docs.json`. These meta tags help improve your site's SEO, social sharing, and browser compatibility.
0 commit comments