Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sitemap): filter all routes with robots meta containing noindex (#…
- Loading branch information
Showing
4 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# No Index Page example | ||
|
||
<head> | ||
<meta name="robots" content="nOiNdeX, NoFolLoW" /> | ||
</head> | ||
|
||
This page will not be indexed by search engines because it contains the page following [page metadata](/docs/seo#single-page-metadata) markup: | ||
|
||
```html | ||
<head> | ||
<meta name="robots" content="noindex, nofollow" /> | ||
</head> | ||
``` | ||
|
||
:::tip | ||
|
||
The sitemap plugin filters pages containing a `noindex` content value. This page doesn't appear in Docusaurus [sitemap.xml](pathname:///sitemap.xml) file. | ||
|
||
::: | ||
|
||
:::note | ||
|
||
Robots directives are [case-insensitive](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives). | ||
|
||
::: |