Skip to content
Snippets Groups Projects
Unverified Commit f17f882d authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

Disable crawling on Netlify. (#29193)

parent 08cc5c39
Branches v3-dev
No related merge requests found
......@@ -291,7 +291,7 @@ module.exports = function (grunt) {
docs: {},
netlify: {
options: {
raw: 'github: true\nbaseurl: ""'
raw: 'github: true\nbaseurl: ""\nnetlify: true'
}
},
github: {
......
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment