2019-01-09 00:33:28 +08:00
|
|
|
# www.robotstxt.org
|
|
|
|
|
2020-11-25 03:05:11 +08:00
|
|
|
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
2024-03-08 18:41:17 +08:00
|
|
|
{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}}
|
2019-08-02 22:26:25 +08:00
|
|
|
|
|
|
|
{{ if $allowCrawling }}
|
2019-01-09 00:33:28 +08:00
|
|
|
# Allow crawling of all content
|
|
|
|
{{- end }}
|
|
|
|
User-agent: *
|
2019-08-02 22:26:25 +08:00
|
|
|
Disallow:{{ if not $allowCrawling }} /{{ end }}
|
2019-08-08 23:30:43 +08:00
|
|
|
Sitemap: {{ "/sitemap.xml" | absURL }}
|