Add _headers file checking logic (#9879)
* Add _headers file checking logic * Remove netlify_noindex_headers.txt file
This commit is contained in:
committed by
k8s-ci-robot
parent
7360a0c10c
commit
b6bb3a60a0
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user