0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/site/layouts/robots.txt

9 lines
234 B
Plaintext
Raw Normal View History

# www.robotstxt.org
{{ if (eq (getenv "HUGO_ENV") "production") -}}
# Allow crawling of all content
{{- end }}
User-agent: *
Disallow:{{ if (ne (getenv "HUGO_ENV") "production") }} /{{ end }}
Sitemap: {{ .Site.BaseURL }}/sitemap.xml