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