diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index ac0de0ab2..19ec6dea9 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -95,7 +95,7 @@ For the second position, you would just use: most helpful when the condition depends on either of the values, or both: ``` -{{ or .Get "title" | .Get "alt" | if }} alt="{{ with .Get "alt"}}{{.}}{{else}}{{.Get "title"}}{{end}}"{{ end }} +{{ if or (.Get "title") (.Get "alt") }} alt="{{ with .Get "alt"}}{{.}}{{else}}{{.Get "title"}}{{end}}"{{ end }} ``` #### `.Inner`