0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-03 03:29:21 +01:00
2024-03-08 12:41:17 +02:00

12 lines
306 B
Plaintext

# www.robotstxt.org
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}}
{{ if $allowCrawling }}
# Allow crawling of all content
{{- end }}
User-agent: *
Disallow:{{ if not $allowCrawling }} /{{ end }}
Sitemap: {{ "/sitemap.xml" | absURL }}