aboutsummaryrefslogtreecommitdiff
path: root/templates/robots.txt
diff options
context:
space:
mode:
Diffstat (limited to 'templates/robots.txt')
-rw-r--r--templates/robots.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/robots.txt b/templates/robots.txt
index 766e67f..7977154 100644
--- a/templates/robots.txt
+++ b/templates/robots.txt
@@ -1,4 +1,9 @@
+{%- if config.extra.dev %}
+User-Agent: *
+Disallow: /
+{%- else %}
Sitemap: {{ get_url(path="sitemap.xml", trailing_slash=false) }}
User-Agent: *
Allow: /
Host: {{ get_url(path="/", trailing_slash=false) }}
+{%- endif %}