Skip to content

Commit 2a146eb

Browse files
authored
add noindex tag to 404 page (#1159)
1 parent eb2957f commit 2a146eb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crowdsec-docs/src/theme/NotFound/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Head from "@docusaurus/Head";
12
import { translate } from "@docusaurus/Translate";
23
import { PageMetadata } from "@docusaurus/theme-common";
34
import Layout from "@theme/Layout";
@@ -12,6 +13,10 @@ export default function Index(): ReactNode {
1213
return (
1314
<>
1415
<PageMetadata title={title} />
16+
<Head>
17+
{/* Amplify serves this page on every unknown path, so keep those URLs out of search indexes. */}
18+
<meta name="robots" content="noindex" />
19+
</Head>
1520
<Layout>
1621
<NotFoundContent />
1722
</Layout>

0 commit comments

Comments
 (0)