Transform the robots meta tag to lowercase (closes #378)

This commit is contained in:
Daniel Ruf 2021-01-16 12:46:57 +01:00
parent 23c7cc6847
commit d483aaa953
No known key found for this signature in database
GPG Key ID: 5245F69163F6C69B

View File

@ -10,9 +10,9 @@
{{ hugo.Generator }} {{ hugo.Generator }}
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW"> <meta name="robots" content="index, follow">
{{ else }} {{ else }}
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> <meta name="robots" content="noindex, nofollow">
{{ end }} {{ end }}
{{ $stylesheet := .Site.Data.webpack_assets.app }} {{ $stylesheet := .Site.Data.webpack_assets.app }}