improve robots to use site param
This commit is contained in:
parent
5dc9b52c67
commit
5c53ef6e2f
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
User-agent: *
|
User-agent: *
|
||||||
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
Disallow:
|
Disallow:
|
||||||
{{ else }}
|
{{ else }}
|
||||||
Disallow: /
|
Disallow: /
|
||||||
|
|
Loading…
Add table
Reference in a new issue