]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
robots.txt: disallow crawling when not in production. (#27559)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 2 Nov 2018 10:41:57 +0000 (12:41 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Nov 2018 10:41:57 +0000 (12:41 +0200)
site/robots.txt

index aef3fa1f64a16c82670d8036c1c926c5ebb9e16c..d3ac12c6462df548337216cacd55b6ed63415788 100644 (file)
@@ -5,5 +5,5 @@
 
 # Allow crawling of all content
 User-agent: *
-Disallow:
+Disallow:{% if jekyll.environment != "production" %} /{% endif %}
 Sitemap: {{ site.url }}/sitemap.xml