aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-08-03 17:09:03 +0300
committerGitHub <[email protected]>2019-08-03 17:09:03 +0300
commitf17f882df292b29323f1e1da515bd16f326cee4a (patch)
tree5ba8857d08638539e6eb1a155d3edfa6708726f7 /docs
parent08cc5c3961f89e37a0d314a2b99cb0fc03f11a09 (diff)
downloadbootstrap-v3-dev.tar.xz
bootstrap-v3-dev.zip
Disable crawling on Netlify. (#29193)v3-dev
Diffstat (limited to 'docs')
-rw-r--r--docs/robots.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/robots.txt b/docs/robots.txt
index aef3fa1f6..c68014eda 100644
--- a/docs/robots.txt
+++ b/docs/robots.txt
@@ -3,7 +3,9 @@
# www.robotstxt.org/
+{% if site.netlify != true and site.github == true -%}
# Allow crawling of all content
+{%- endif %}
User-agent: *
-Disallow:
+Disallow:{% if site.netlify == true or site.github != true %} /{% endif %}
Sitemap: {{ site.url }}/sitemap.xml