From f8188f1c8c0dfb56fb634d799d3c417c08a780ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 2 Jan 2025 22:04:23 +0100 Subject: [PATCH] Update shortcode.md --- content/en/templates/shortcode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/templates/shortcode.md b/content/en/templates/shortcode.md index e7c6f1d8a..d1d8dee01 100644 --- a/content/en/templates/shortcode.md +++ b/content/en/templates/shortcode.md @@ -395,7 +395,7 @@ It is disabled by default for security reasons. The security model used by Hugo' And once enabled, you can do this in your content files: ```go-html-template -{{< sum.inline 4.3 3.14 8.23 12.4 >}}Sum: {{ math.Sum .Params }}{{< /sum.inline >}} +{{}}Sum: {{ math.Sum .Params }}{{}} ``` The above will print the sum of the numbers given. @@ -407,7 +407,7 @@ This means that the current page can be accessed via `.Page.Title` etc. This als The same inline shortcode can be reused later in the same content file, with different arguments if needed, using the self-closing syntax: ```go-html-template -{{< sum.inline 3.14159265359 6.324 />}} +{{}} ``` [`.Parent`]: /methods/shortcode/parent/