diff options
Diffstat (limited to 'docs/content/en/methods/shortcode/Get.md')
-rw-r--r-- | docs/content/en/methods/shortcode/Get.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/methods/shortcode/Get.md b/docs/content/en/methods/shortcode/Get.md index b9c01cfc4..aef9987f0 100644 --- a/docs/content/en/methods/shortcode/Get.md +++ b/docs/content/en/methods/shortcode/Get.md @@ -24,7 +24,7 @@ This shortcode call uses positional arguments: To retrieve arguments by position: -```go-html-template {file="layouts/shortcodes/myshortcode.html"} +```go-html-template {file="layouts/_shortcodes/myshortcode.html"} {{ printf "%s %s." (.Get 0) (.Get 1) }} → Hello world. ``` @@ -38,7 +38,7 @@ This shortcode call uses named arguments: To retrieve arguments by name: -```go-html-template {file="layouts/shortcodes/myshortcode.html"} +```go-html-template {file="layouts/_shortcodes/myshortcode.html"} {{ printf "%s %s." (.Get "greeting") (.Get "firstName") }} → Hello world. ``` |