add robots.txt disallow directive for hiddenPage
This commit is contained in:
parent
77ff4f99c6
commit
149067a8a2
@ -1,7 +1,9 @@
|
||||
User-agent: *
|
||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||
Disallow:
|
||||
{{- else }}
|
||||
{{- if not (hugo.IsProduction | or (eq site.Params.env "production")) }}
|
||||
Disallow: /
|
||||
{{- else }}
|
||||
{{- range where site.RegularPages "Params.hiddenPage" true }}
|
||||
Disallow: {{ .RelPermalink }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user