Skip to content

Commit ca4f2fd

Browse files
authored
Update robots meta tag for production environment
1 parent e855807 commit ca4f2fd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

layouts/partials/seo.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<meta name="google-site-verification" content="zl9o8a5lMqKy_2dn2YR6swgC5REHalMWw25PBhJnJSc" />
12
{{ with .Site.Params.themeColor }}
23
<meta name="theme-color" content="{{ . }}" />
34
{{ end }}
@@ -45,9 +46,9 @@
4546
<!-- Keywords are ignore nowadays by search engines -->
4647
{{ if not hugo.IsProduction }}
4748
<!-- robots; TODO: disable index on lists -->
48-
<meta name="robots" content="index,follow" />
49-
{{ else }}
5049
<meta name="robots" content="noindex,nofollow" />
50+
{{ else }}
51+
<meta name="robots" content="index,follow" />
5152
{{ end }}
5253

5354

@@ -58,8 +59,6 @@
5859
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />
5960
{{ end }}
6061

61-
<meta name="google-site-verification" content="zl9o8a5lMqKy_2dn2YR6swgC5REHalMWw25PBhJnJSc" />
62-
6362
{{ range .AlternativeOutputFormats }}
6463
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
6564
{{ end }}

0 commit comments

Comments
 (0)