Skip to content

Commit f51b5be

Browse files
authored
Merge pull request #115 from datum-cloud/disallow-search-meta
fix: add meta robot noindex nofollow
2 parents c29a1b8 + 27b35e1 commit f51b5be

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/layouts/Handbook.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const {
2626
article = false,
2727
publishDate,
2828
author,
29-
noindex = false,
29+
// noindex = false,
3030
canonical,
3131
} = Astro.props;
3232
@@ -41,7 +41,8 @@ const imageUrl = new URL(image, Astro.site).href;
4141
title={title}
4242
description={description}
4343
canonical={canonical || pageUrl}
44-
noindex={noindex}
44+
noindex={true}
45+
nofollow={true}
4546
openGraph={{
4647
basic: {
4748
title: title,

src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const {
1414
article,
1515
publishDate,
1616
author,
17-
noindex,
1817
canonical,
1918
fluid = false,
2019
} = Astro.props as LayoutProps;
@@ -31,7 +30,8 @@ const imageUrl = image ? new URL(image, Astro.site).href : defaultImage;
3130
title={title}
3231
description={description}
3332
canonical={canonical || pageUrl}
34-
noindex={noindex}
33+
noindex={true}
34+
nofollow={true}
3535
openGraph={{
3636
basic: {
3737
title: title,

0 commit comments

Comments
 (0)