mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-28 00:19:28 -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 }}
|