Add hugo.IsExtended

Fixes #8399
This commit is contained in:
Bjørn Erik Pedersen 2021-04-09 07:28:27 +02:00
parent 3d5dbdcb1a
commit 7fdd2b95e2
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,9 @@ hugo.CommitHash
hugo.BuildDate
: the compile date of the current Hugo binary formatted with RFC 3339 e.g. `2002-10-02T10:00:00-05:00`
hugo.IsExtended {{< new-in "0.83.0" >}}
: whether this is the extended Hugo binary.
hugo.IsProduction
: returns true if `hugo.Environment` is set to the production environment