Change bootstrap to source version
This commit is contained in:
12
bootstrap/site/layouts/robots.txt
Normal file
12
bootstrap/site/layouts/robots.txt
Normal file
@ -0,0 +1,12 @@
|
||||
# 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 }}
|
||||
Reference in New Issue
Block a user