website/layouts/robots.txt
2021-03-09 18:56:02 +05:30

7 lines
141 B
Text

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