From 8845854aa9ab5af79066e840d8c884fbbb8a269d Mon Sep 17 00:00:00 2001
From: zar3bski <zarebskidavid@gmail.com>
Date: Tue, 09 Mar 2021 20:40:16 +0000
Subject: [PATCH] fix : production should Allow and point to Sitemap (#404)

---
 layouts/robots.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/layouts/robots.txt b/layouts/robots.txt
index b18c6e9..7a24e82 100644
--- a/layouts/robots.txt
+++ b/layouts/robots.txt
@@ -1,7 +1,8 @@
 User-agent: *
 # robotstxt.org - if ENV production variable is false robots will be disallowed.
 {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")  }}
-  Disallow:
+Allow: /
+Sitemap: {{.Site.BaseURL}}/sitemap.xml
 {{ else }}
-  Disallow: /
+Disallow: /
 {{ end }}

--
Gitblit v1.10.0