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
+11-28Lines changed: 11 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,14 @@
1
1
---
2
2
title: 'SEO'
3
-
description: 'Mintlify automatically generates most meta tags. If you want to customize them, you can set default values in docs.json or change them per page.'
3
+
description: 'Extend default meta tags for better SEO'
4
4
icon: 'search'
5
5
---
6
6
7
-
<Accordiontitle="Supported Meta Tags">
8
-
9
-
- og:site_name
10
-
- og:title
11
-
- og:description
12
-
- og:url
13
-
- og:image
14
-
- og:locale
15
-
- og:logo
16
-
- article:publisher
17
-
- twitter:title
18
-
- twitter:description
19
-
- twitter:url
20
-
- twitter:image
21
-
- twitter:site
22
-
- og:image:width
23
-
- og:image:height
24
-
- robots
25
-
26
-
</Accordion>
27
-
28
-
## Default meta tags
7
+
The platform automatically generates most meta tags.
8
+
9
+
However, you can fully customize them by adding the [metadata](/core-concepts/settings#param-metadata) field to your `docs.json` or the page's frontmatter.
10
+
11
+
## Global meta tags
29
12
30
13
You can set default meta tags by adding the `metadata` field to your `docs.json`.
31
14
@@ -37,7 +20,7 @@ You can set default meta tags by adding the `metadata` field to your `docs.json`
37
20
}
38
21
```
39
22
40
-
## Changing meta tags on one page
23
+
## Page-specific meta tags
41
24
42
25
Add your meta tags to the page's metadata like so:
43
26
@@ -49,14 +32,12 @@ title: 'Your Example Page Title'
49
32
```
50
33
51
34
<Warning>
52
-
53
-
Meta tags with colons need to be typed with quotes around them when you put them in the page metadata.
54
-
35
+
Meta tags with colons need to be typed with quotes around them when you put them in the page metadata.
55
36
</Warning>
56
37
57
38
## Sitemaps
58
39
59
-
Mintlify automatically generates a `sitemap.xml` file and a `robots.txt` file. Simply add `/sitemap.xml` to the end of your website URL to see your sitemap. We recommend submitting the sitemap to search engines for improved SEO.
40
+
Mintlify automatically generates a `sitemap.xml` file and a `robots.txt` file. Simply navigate to `/sitemap.xml` to see your sitemap.
60
41
61
42
Only pages included in your `docs.json` are included by default. To include hidden links, add `seo.indexing` to your `docs.json`:
62
43
@@ -67,7 +48,9 @@ Only pages included in your `docs.json` are included by default. To include hidd
67
48
```
68
49
69
50
## Disabling indexing
51
+
70
52
If you want to stop a page from being indexed by search engines, you can include the following in the [frontmatter](/core-concepts/pages) of your page:
0 commit comments