fix : production should Allow and point to Sitemap (#404)

This commit is contained in:
zar3bski 2021-03-09 21:40:16 +01:00 committed by GitHub
parent db9acdd991
commit 8845854aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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