From 6dcec618d0ff0a2270f787f62267a0622275c69d Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 22:37:44 -0700 Subject: Load Tinysearch/Stork On Demand --- templates/robots.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/robots.txt') 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 %} -- cgit v1.3.1