Skip to content

Commit 4531233

Browse files
committed
resolves #31 noindex on googlebot and bingbot when page-no-index is defined
1 parent cd2f42b commit 4531233

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/partials/head-prelude.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
<meta name="google-site-verification" content="ucqagxjVuq0lJZeLKs0F5AppzK111lNt3IoxU6mzlJE" />
55
{{#if (ne page.attributes.no-index undefined) }}
66
<meta name="robots" content="noindex" />
7+
<meta name="googlebot" content="noindex" />
8+
<meta name="bingbot" content="noindex" />
79
{{else}}
810
<meta name="robots" content="index, follow" />
9-
{{/if}}
1011
<meta name="googlebot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
1112
<meta name="bingbot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
13+
{{/if}}
1214

1315
<meta property="og:locale" content="en_US" />
1416
<meta property="og:type" content="article" />

0 commit comments

Comments
 (0)