Browse Source

improve robots to use site param

tags/v1.1
Bud Parr 7 years ago
parent
commit
5c53ef6e2f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/robots.txt

+ 1
- 1
layouts/robots.txt View File

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…
Cancel
Save