From f6ec83533e237c192e0605e5a68f960b868721a5 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 13 Feb 2025 20:57:15 -0800 Subject: [PATCH] content: Fix inline shortcode example --- content/en/content-management/shortcodes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/content-management/shortcodes.md b/content/en/content-management/shortcodes.md index 1c5e2c99c..55d1ffa66 100644 --- a/content/en/content-management/shortcodes.md +++ b/content/en/content-management/shortcodes.md @@ -61,13 +61,13 @@ The following example demonstrates an inline shortcode, `date.inline`, that acce [layout string]: /functions/time/format/#layout-string -{{< code file=content/example.md >}} +{{< code file=content/example.md lang=go >}} Today is {{}} {{- now | time.Format (.Get 0) -}} {{}}. -Today is {{}}. +Today is {{}}. {{< /code >}} In the example above, the inline shortcode is executed twice: once upon definition and again when subsequently called. Hugo renders this to: