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 }}