improve robots to use site param

This commit is contained in:
Bud Parr 2017-04-15 12:31:22 -04:00
parent 5dc9b52c67
commit 5c53ef6e2f
No known key found for this signature in database
GPG Key ID: ACA375160539D2B3
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
User-agent: *
# 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:
{{ else }}
Disallow: /