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 2018-10-22 09:15:28 +09:00 committed by Bjørn Erik Pedersen
parent 1f2846e6d1
commit c6b193c6f3

View File

@ -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:
```