Add default robots.txt. Close ##21
This commit is contained in:
parent
f8131480d1
commit
3d2abb5cfa
7
layouts/robots.txt
Normal file
7
layouts/robots.txt
Normal file
@ -0,0 +1,7 @@
|
||||
User-agent: *
|
||||
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||
Disallow:
|
||||
{{ else }}
|
||||
Disallow: /
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user