aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-11-02 12:41:57 +0200
committerGitHub <[email protected]>2018-11-02 12:41:57 +0200
commit3256a2c2315b0b95d2d02b71f0bda04fc91e70af (patch)
tree6fa0230594e820f4a81f0dd6207d7021206f6fa6
parent4b15ec9cad9296821b9f1771034c7c656cc11dc3 (diff)
downloadbootstrap-3256a2c2315b0b95d2d02b71f0bda04fc91e70af.tar.xz
bootstrap-3256a2c2315b0b95d2d02b71f0bda04fc91e70af.zip
robots.txt: disallow crawling when not in production. (#27559)
-rw-r--r--site/robots.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/robots.txt b/site/robots.txt
index aef3fa1f6..d3ac12c64 100644
--- a/site/robots.txt
+++ b/site/robots.txt
@@ -5,5 +5,5 @@
# Allow crawling of all content
User-agent: *
-Disallow:
+Disallow:{% if jekyll.environment != "production" %} /{% endif %}
Sitemap: {{ site.url }}/sitemap.xml