Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-11-02 13:41:57 +0300
committerGitHub <noreply@github.com>2018-11-02 13:41:57 +0300
commit3256a2c2315b0b95d2d02b71f0bda04fc91e70af (patch)
tree6fa0230594e820f4a81f0dd6207d7021206f6fa6 /site/robots.txt
parent4b15ec9cad9296821b9f1771034c7c656cc11dc3 (diff)
robots.txt: disallow crawling when not in production. (#27559)
Diffstat (limited to 'site/robots.txt')
-rw-r--r--site/robots.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/robots.txt b/site/robots.txt
index aef3fa1f64..d3ac12c646 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