mirror of
https://github.com/tabler/tabler.git
synced 2026-08-05 01:44:41 +04:00
Update robots.liquid to conditionally include sitemap URL for production environment
This commit is contained in:
@@ -3,7 +3,7 @@ layout: null
|
||||
permalink: robots.txt
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
Sitemap: {% if environment != 'development' %}{{ site.docsUrl }}{% endif %}/sitemap.xml
|
||||
Sitemap: {% if environment == 'production' %}{{ site.docsUrl }}{% endif %}/sitemap.xml
|
||||
|
||||
{% if environment != 'production' %}
|
||||
User-agent: *
|
||||
|
||||
Reference in New Issue
Block a user