website/layouts/robots.txt

8 lines
141 B
Text
Raw Permalink Normal View History

2021-03-09 18:56:02 +05:30
User-agent: *
{{ if eq (hugo.Environment) "production" -}}
Allow: /
{{ else -}}
Disallow: /
{{ end }}
Sitemap: {{ "sitemap.xml" | absURL -}}