Add _headers file checking logic (#9879)

* Add _headers file checking logic

* Remove netlify_noindex_headers.txt file
This commit is contained in:
Luc Perkins
2018-08-21 12:51:15 -07:00
committed by k8s-ci-robot
parent 7360a0c10c
commit b6bb3a60a0
5 changed files with 35 additions and 9 deletions
+6 -1
View File
@@ -1,3 +1,4 @@
{{- if eq (getenv "HUGO_ENV") "production" }}
{{- $cssFilesFromConfig := .Site.Params.pushAssets.css -}}
{{- $jsFilesFromConfig := .Site.Params.pushAssets.js -}}
{{- $pages := .Site.RegularPages -}}
@@ -33,4 +34,8 @@
{{- end -}}
{{- end -}}
{{- end }}
{{- end -}}
{{- end -}}
{{- else }}
/*
X-Robots-Tag: noindex
{{- end }}