added ability to noindex specific pages
parent
83b4839c82
commit
fba6646926
|
|
@ -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 -}}
|
||||
Loading…
Reference in New Issue