mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
Add new-in tags to hugo.IsDevelopment and hugo.IsServer
This commit is contained in:
1 parent
aa47ca0232
commit
ee24cffb58
1 file changed
+2
-2
@@ -37,7 +37,7 @@ aliases: [/functions/hugo]
|
|||||||
`hugo.GoVersion`
|
`hugo.GoVersion`
|
||||||
: (`string`) The Go version used to compile the Hugo binary (e.g., `go1.20.4`). {{< new-in "0.101.0" >}}
|
: (`string`) The Go version used to compile the Hugo binary (e.g., `go1.20.4`). {{< new-in "0.101.0" >}}
|
||||||
|
|
||||||
`hugo.IsDevelopment`
|
`hugo.IsDevelopment` {{< new-in "0.120.0" >}}
|
||||||
: (`bool`) Returns `true` if `hugo.Environment` is "development".
|
: (`bool`) Returns `true` if `hugo.Environment` is "development".
|
||||||
|
|
||||||
`hugo.IsExtended`
|
`hugo.IsExtended`
|
||||||
@@ -46,7 +46,7 @@ aliases: [/functions/hugo]
|
|||||||
`hugo.IsProduction`
|
`hugo.IsProduction`
|
||||||
: (`bool`) Returns `true` if `hugo.Environment` is "production".
|
: (`bool`) Returns `true` if `hugo.Environment` is "production".
|
||||||
|
|
||||||
`hugo.IsServer`
|
`hugo.IsServer` {{< new-in "0.120.0" >}}
|
||||||
: (`bool`) Returns `true` if the site is being served with Hugo's built-in server.
|
: (`bool`) Returns `true` if the site is being served with Hugo's built-in server.
|
||||||
|
|
||||||
`hugo.Version`
|
`hugo.Version`
|
||||||
|
|||||||
Reference in new issue
Block a user