diff options
author | Khayyam Saleem <hello@khayyam.me> | 2022-05-30 09:12:41 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-06-14 09:48:45 +0200 |
commit | 09ac73338198ceb143c1e5edc5859ab735cd80bb (patch) | |
tree | f099b8fa2f555362fa2e5450a2f5fc51da397504 /docs/content/en/functions | |
parent | 66da1b7b2f8a8bd26ed4a50a54f64489f116f484 (diff) |
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.
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r-- | docs/content/en/functions/hugo.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/content/en/functions/hugo.md b/docs/content/en/functions/hugo.md index a495eae0a..1792f5a8d 100644 --- a/docs/content/en/functions/hugo.md +++ b/docs/content/en/functions/hugo.md @@ -27,8 +27,8 @@ hugo.Generator hugo.Version : the current version of the Hugo binary you are using e.g. `0.63.2` - -`hugo` returns an instance that contains the following functions: +hugo.GoVersion +: returns the version of Go that the Hugo binary was built with. {{< new-in "0.101.0" >}} hugo.Environment : 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 : See [hugo.Deps](#hugodeps) - ## hugo.Deps {{< new-in "0.92.0" >}} @@ -112,4 +111,4 @@ An example table listing the dependencies: {{ end }} </tbody> </table> -```
\ No newline at end of file +``` |