mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-25 22:45:53 -05:00
77baa3d76e
used when enableRobotsTXT: true https://gohugo.io/templates/robots/
8 lines
183 B
Plaintext
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 }}
|