From c6b193c6f3348bc96cc4d9fe4ce5d114d5d16ccf Mon Sep 17 00:00:00 2001 From: Rick Cogley Date: Mon, 22 Oct 2018 09:15:28 +0900 Subject: [PATCH] Update shortcode-templates.md Improved based on a little confusion on forum related to how to access e.g. a second positional param. --- content/en/templates/shortcode-templates.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index 67e54089f..3244c599e 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -71,6 +71,12 @@ To access a parameter by position, use the `.Get` followed by a numeric position {{ .Get 0 }} ``` +For the second position, you would just use: + +``` +{{ .Get 1 }} +``` + `with` is great when the output depends on a parameter being set: ```