From 62477e7d1b3a69bf76d413e6a4281f93b582b03d Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 14 Nov 2020 12:54:22 +0530 Subject: [PATCH] head: add meta robots - disable indexing for non-prod sites --- layouts/partials/head.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e9d0bfd4..1a56247b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,11 @@ +{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + +{{- else }} + +{{- end -}} {{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}