Skip to content

Commit

Permalink
Correctly check for production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
chringel21 committed Mar 23, 2022
1 parent 6dd6931 commit bb0bfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{- if .Params.Author -}}
<meta name="author" content="{{ .Params.Author }}" />
{{ end -}}
{{ if eq (getenv "HUGO_ENV") "production" }}
{{ if hugo.IsProduction }}
<meta name="robots" content="index,follow">
{{ else }}
<meta name="robots" content="noindex,nofollow">
Expand Down

0 comments on commit bb0bfc7

Please sign in to comment.