mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
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
8 lines
224 B
Plaintext
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 }}
|