mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
layouts: add robots.txt
used when enableRobotsTXT: true https://gohugo.io/templates/robots/
This commit is contained in:
parent
5264c7011e
commit
77baa3d76e
7
layouts/robots.txt
Normal file
7
layouts/robots.txt
Normal file
@ -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
Block a user