From 09ac73338198ceb143c1e5edc5859ab735cd80bb Mon Sep 17 00:00:00 2001 From: Khayyam Saleem Date: Mon, 30 May 2022 09:12:41 -0400 Subject: 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. --- docs/content/en/functions/hugo.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs') 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 ``. `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 }} -``` \ No newline at end of file +``` -- cgit v1.2.3