added ability to noindex specific pages

pull/5096/head^2
Scott Anderson 2023-08-21 16:26:30 -06:00
parent 83b4839c82
commit fba6646926
1 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,6 @@
User-agent: *
{{ if eq .Site.Params.environment "staging" }}Disallow: /{{ end }}
{{- if eq .Site.Params.environment "staging" }}Disallow: /
{{- else }}{{ range where .Site.Pages ".Params.noindex" true }}
Disallow: {{ .RelPermalink }}
{{ end -}}
{{ end -}}