5 Commits

Author SHA1 Message Date
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
Laban Sköllermark
f3388f4fef Use environment introduced in Hugo 0.53
The Ananke theme got environment support before Hugo did and when Hugo
added it in version 0.53 it was in a slightly different way. Running
"hugo server" will set the environment to "development" and running just
"hugo" will set it to "production". It can be overridden by OS
environment variable "HUGO_ENVIRONMENT" (note, not "HUGO_ENV") or by
using the --environment option.

Use "hugo.Environment" to detect environment instead and update the
README.
2019-11-08 23:26:18 +01:00
Bud Parr
5c53ef6e2f
improve robots to use site param 2017-04-15 12:31:22 -04:00
Bud Parr
6331805b90
clean up layouts 2017-04-13 23:01:23 -04:00
Bud Parr
98bc281a57
first commit 2017-04-10 21:27:13 -04:00