aboutsummaryrefslogtreecommitdiff
path: root/templates/robots.txt
diff options
context:
space:
mode:
authorJieiku2023-05-22 22:37:44 -0700
committerJieiku2023-05-22 22:37:44 -0700
commit6dcec618d0ff0a2270f787f62267a0622275c69d (patch)
treef0dd674fe43331db55ddae38808749de0323f030 /templates/robots.txt
parent71d977d49afbf93e0c736815e36d59664991fa18 (diff)
downloadabridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.gz
abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.tar.bz2
abridge-6dcec618d0ff0a2270f787f62267a0622275c69d.zip
Load Tinysearch/Stork On Demand
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..09aba30 100644
--- a/templates/robots.txt
+++ b/templates/robots.txt
@@ -1,4 +1,9 @@
+{%- if config.extra.prod %}
Sitemap: {{ get_url(path="sitemap.xml", trailing_slash=false) }}
User-Agent: *
Allow: /
Host: {{ get_url(path="/", trailing_slash=false) }}
+{%- else %}
+User-Agent: *
+Disallow: /
+{%- endif %}