Skip to content

Commit

Permalink
feat(v2): Remove themeConfig.noIndex from env dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzahamidi committed Oct 13, 2020
1 parent 4ddd8ba commit 691b703
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Docusaurus">
<title><%= htmlWebpackPlugin.options.title %></title>
<%if (htmlWebpackPlugin.options.noIndex) { %>
<meta name="robots" content="noindex" />
<% } %>
<%= htmlWebpackPlugin.options.headTags %>
<%= htmlWebpackPlugin.tags.headTags %>
</head>
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export default async function start(
inject: false,
filename: 'index.html',
title: siteConfig.title,
noIndex: siteConfig.noIndex,
headTags,
preBodyTags,
postBodyTags,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/api/docusaurus.config.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = {

- 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)).
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:

Expand Down

0 comments on commit 691b703

Please sign in to comment.