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