portails/layouts/robots.txt

8 lines
145 B
Plaintext

User-agent: *
{{ if eq (hugo.Environment) "production" -}}
Allow: /
{{ else -}}
Disallow: /
{{ end }}
Sitemap: {{ "sitemap.xml" | absLangURL -}}