mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04: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 }}
|