Disable crawling on Netlify. (#29193)
This commit is contained in:
parent
08cc5c3961
commit
f17f882df2
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue