mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-25 22:45:53 -05: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