summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-12-13 20:19:25 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-12-13 20:19:25 +0530
commitbf79c208aeb506c195d0ce3728d343e52b75e3f3 (patch)
treecb5969dd3daa630c263e17cf5514e861855d5347 /layouts/partials/head.html
parent153740bbac3ce4f7a23369bed66112f6852b6af4 (diff)
layouts: use hugo.IsProduction
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 408cee0..f257b68 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,7 +1,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
<meta name="robots" content="index, follow">
{{- else }}
<meta name=" robots" content="noindex, nofollow">
@@ -76,7 +76,7 @@
{{ end }}
{{- partial "extend_head.html" . -}}
<!-- Misc -->
-{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
{{- template "_internal/google_analytics_async.html" . }}
{{- template "_internal/google_news.html" . }}
{{- template "partials/templates/opengraph.html" . }}