fix : production should Allow and point to Sitemap

This commit is contained in:
zar3bski 2021-03-08 19:27:37 +01:00
parent db9acdd991
commit 9f10a658bf

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