1
0
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:
codecalm
2026-07-14 22:56:13 +02:00
parent 6a43b1f1b7
commit 0c79a35b75
+1 -1
View File
@@ -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: *