hugo-PaperMod/layouts/robots.txt

8 lines
183 B
Plaintext

User-agent: *
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
Disallow:
{{- else }}
Disallow: /
{{- end }}
Sitemap: {{ "sitemap.xml" | absURL }}