mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01: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 }}
|