From 06c5fd1a0c11cb4ae252873a95100d8069ae26df Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 18 Jul 2023 08:19:21 -0700 Subject: Lighthouse Fixes --- templates/robots.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/robots.txt b/templates/robots.txt index 09aba30..7977154 100644 --- a/templates/robots.txt +++ b/templates/robots.txt @@ -1,9 +1,9 @@ -{%- if config.extra.prod %} +{%- 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) }} -{%- else %} -User-Agent: * -Disallow: / {%- endif %} -- cgit v1.3.1