hugo-PaperMod/layouts/robots.txt
Aditya Telange 77baa3d76e
layouts: add robots.txt
used when
enableRobotsTXT: true

https://gohugo.io/templates/robots/
2020-11-08 22:31:27 +05:30

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