summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2023-09-29 10:23:08 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-10-06 16:26:51 +0200
commitd1b4458536372a4f8b60395bf867702571169362 (patch)
tree0529b2a206254412e47dcbadaf97e427d5e696ee /docs/content/en/functions
parent274852bcf254230fae30bed4883049ec94462e85 (diff)
common/hugo: Add hugo.IsServer and hugo.IsDevelopment
And deprecate site.IsServer. Closes #11510
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r--docs/content/en/functions/hugo.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/content/en/functions/hugo.md b/docs/content/en/functions/hugo.md
index 78d658c66..5ed1ae85c 100644
--- a/docs/content/en/functions/hugo.md
+++ b/docs/content/en/functions/hugo.md
@@ -31,11 +31,17 @@ relatedfuncs: []
`hugo.GoVersion`
: (`string`) The Go version used to compile the Hugo binary (e.g., `go1.20.4`). {{< new-in "0.101.0" >}}
+`hugo.IsDevelopment`
+: (`bool`) Returns `true` if `hugo.Environment` is "development".
+
`hugo.IsExtended`
: (`bool`) Returns `true` if the Hugo binary is the extended version.
`hugo.IsProduction`
-: (`bool`) Returns `true` if `hugo.Environment` is set to the production environment.
+: (`bool`) Returns `true` if `hugo.Environment` is "production".
+
+`hugo.IsServer`
+: (`bool`) Returns `true` if the site is being served with Hugo's built-in server.
`hugo.Version`
: (`hugo.VersionString`) The current version of the Hugo binary (e.g., `0.112.1`).