Revert "list pages with robotsNoIndex in robots.txt"

This reverts commit 724b999be4c1299d8481b25ef13cc7c98cd7a6db.
This commit is contained in:
Martin Pittermann 2022-05-08 12:51:56 +02:00
parent 724b999be4
commit e6dad8a6a2

View File

@ -1,12 +1,6 @@
User-agent: * User-agent: *
{{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- 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: Disallow:
{{- end }}
{{- else }} {{- else }}
Disallow: / Disallow: /
{{- end }} {{- end }}