2025-02-17 07:02:47 +01:00
|
|
|
# www.robotstxt.org
|
|
|
|
|
|
|
|
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
2025-04-06 09:55:21 +02:00
|
|
|
{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}}
|
2025-02-17 07:02:47 +01:00
|
|
|
|
|
|
|
{{ if $allowCrawling }}
|
|
|
|
# Allow crawling of all content
|
|
|
|
{{- end }}
|
|
|
|
User-agent: *
|
|
|
|
Disallow:{{ if not $allowCrawling }} /{{ end }}
|
|
|
|
Sitemap: {{ "/sitemap.xml" | absURL }}
|