mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 22:14:58 +00:00
common: Add hugo.GoVersion
Closes #9849. This enables `hugo.GoVersion` in templates to access the version of Go that the Hugo binary was built with.
This commit is contained in:
1 parent
e679f1b7e9
commit
4785e99b14
1 file changed
+2
-3
@@ -27,8 +27,8 @@ hugo.Generator
|
|||||||
hugo.Version
|
hugo.Version
|
||||||
: the current version of the Hugo binary you are using e.g. `0.63.2`
|
: the current version of the Hugo binary you are using e.g. `0.63.2`
|
||||||
|
|
||||||
|
hugo.GoVersion
|
||||||
`hugo` returns an instance that contains the following functions:
|
: returns the version of Go that the Hugo binary was built with. {{< new-in "0.101.0" >}}
|
||||||
|
|
||||||
hugo.Environment
|
hugo.Environment
|
||||||
: the current running environment as defined through the `--environment` cli tag
|
: the current running environment as defined through the `--environment` cli tag
|
||||||
@@ -52,7 +52,6 @@ We highly recommend using `hugo.Generator` in your website's `<head>`. `hugo.Gen
|
|||||||
hugo.Deps
|
hugo.Deps
|
||||||
: See [hugo.Deps](#hugodeps)
|
: See [hugo.Deps](#hugodeps)
|
||||||
|
|
||||||
|
|
||||||
## hugo.Deps
|
## hugo.Deps
|
||||||
|
|
||||||
{{< new-in "0.92.0" >}}
|
{{< new-in "0.92.0" >}}
|
||||||
|
|||||||
Reference in new issue
Block a user