From 05494b7d2c8c0e03d2fd2a65c09b302b158b728a Mon Sep 17 00:00:00 2001 From: irkode Date: Sun, 14 Apr 2024 15:32:56 +0300 Subject: [PATCH] Fix conflicting text for global site function --- content/en/functions/global/site.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/en/functions/global/site.md b/content/en/functions/global/site.md index a097e471b..a4879fee0 100644 --- a/content/en/functions/global/site.md +++ b/content/en/functions/global/site.md @@ -12,17 +12,19 @@ action: aliases: [/functions/site] --- -At the top level of a template that receives the `Site` object in context, these are equivalent: +Use the `site` function to return the `Site` object regardless of current context. ```go-html-template -{{ .Site.Params.foo }} {{ site.Params.foo }} ``` -When the `Site` object is not in context, use the global `site` function: +When the `Site` object is in context you can use the `Site` property: ```go-html-template -{{ site.Params.foo }} + +{{ .Site.Params.foo }} + +{{ $.Site.Params.foo }} ``` {{% note %}}