Laban Sköllermark 457e8fdcee Continue supporting HUGO_ENV
Revert some of the changes done in
a7324c5f15effe5d2b78992fc7b829b29152a7f9. Continue supporting the
environment variable "HUGO_ENV" which doesn't affect Hugo while still
supporting the new, official ways of setting the environment.

<body> will however get a class named by the official environment only
since it would be confusing to add both a "development" class and a
"production" class at the same time if the site is rendered using this
command for instance:

  $ HUGO_ENV=production hugo server
2019-11-08 23:26:18 +01:00

8 lines
224 B
Plaintext

User-agent: *
# robotstxt.org - if environment is not production robots will be disallowed.
{{ if eq (getenv "HUGO_ENV") "production" | or (eq hugo.Environment "production") }}
Disallow:
{{ else }}
Disallow: /
{{ end }}