Add default robots.txt. Close ##21
This commit is contained in:
parent
f8131480d1
commit
3d2abb5cfa
1 changed files with 7 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue