layouts: add robots.txt
used when enableRobotsTXT: true https://gohugo.io/templates/robots/
This commit is contained in:
parent
5264c7011e
commit
77baa3d76e
|
@ -0,0 +1,7 @@
|
|||
User-agent: *
|
||||
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||
Disallow:
|
||||
{{- else }}
|
||||
Disallow: /
|
||||
{{- end }}
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
Loading…
Reference in New Issue