Update shortcode-templates.md

Improved based on a little confusion on forum related to how to access e.g. a second positional param.
This commit is contained in:
Rick Cogley authored and Bjørn Erik Pedersen committed 2018-10-22 12:49:51 +02:00
1 parent 1f2846e6d1
commit c6b193c6f3
1 file changed
+6
@@ -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:
```