mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
* feat(v2): Add themeConfig.noIndex option #3528 * feat(v2): Add themeConfig.noIndex optionthrough ssrTemplate * feat(v2): Include themeConfig.noIndex in CLI migration v1 to v2 * feat(v2): Remove themeConfig.noIndex from env dev
This commit is contained in:
parent
e5d9cdc871
commit
e0c644e623
12 changed files with 31 additions and 3 deletions
|
@ -80,6 +80,20 @@ module.exports = {
|
|||
|
||||
## Optional fields
|
||||
|
||||
### `noIndex`
|
||||
|
||||
- Type: `boolean`
|
||||
|
||||
This option adds `<meta name="robots" content="noindex">` in pages, to tell search engines to avoid indexing your site (more information [here](https://moz.com/learn/seo/robots-meta-directives)).
|
||||
|
||||
Example:
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
noIndex: true, // Defaults to false
|
||||
};
|
||||
```
|
||||
|
||||
### `onBrokenLinks`
|
||||
|
||||
- Type: `'ignore' | 'log' | 'warn' | 'error' | 'throw'`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue