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: