mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-04 16:24:22 +01:00
13 lines
360 B
Plaintext
13 lines
360 B
Plaintext
# www.robotstxt.org
|
|
|
|
{{- $isProduction := eq hugo.Environment "production" -}}
|
|
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
|
{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
|
|
|
|
{{ if $allowCrawling }}
|
|
# Allow crawling of all content
|
|
{{- end }}
|
|
User-agent: *
|
|
Disallow:{{ if not $allowCrawling }} /{{ end }}
|
|
Sitemap: {{ "/sitemap.xml" | absURL }}
|