Revert "list pages with robotsNoIndex in robots.txt"
This reverts commit 724b999be4c1299d8481b25ef13cc7c98cd7a6db.
This commit is contained in:
parent
724b999be4
commit
e6dad8a6a2
@ -1,12 +1,6 @@
|
||||
User-agent: *
|
||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||
{{- $noIndexPages := where .Site.Pages "Params.robotsNoIndex" true }}
|
||||
{{- range $noIndexPages }}
|
||||
Disallow: {{ .RelPermalink }}
|
||||
{{- end }}
|
||||
{{- if not $noIndexPages }}
|
||||
Disallow:
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
Disallow: /
|
||||
{{- end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user