diff options
Diffstat (limited to 'docs/content/templates/shortcode-templates.md')
-rw-r--r-- | docs/content/templates/shortcode-templates.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/templates/shortcode-templates.md b/docs/content/templates/shortcode-templates.md index 585d538d8..65642ae61 100644 --- a/docs/content/templates/shortcode-templates.md +++ b/docs/content/templates/shortcode-templates.md @@ -119,7 +119,7 @@ You could then include the following as part of your shortcode templating: ``` {{ if .IsNamedParams }} -<img src="{{.Get "src" alt=""> +<img src="{{.Get "src" }}" alt=""> {{ else }} <img src="{{.Get 0}}" alt=""> {{ end }}. @@ -345,4 +345,4 @@ More shortcode examples can be found in the [shortcodes directory for spf13.com] [spfscs]: https://github.com/spf13/spf13.com/tree/master/layouts/shortcodes "See more examples of shortcodes by visiting the shortcode directory of the source for spf13.com, the blog of Hugo's creator, Steve Francia." [templates]: /templates/ "The templates section of the Hugo docs." [vimeoexample]: #single-flexible-example-vimeo -[youtubeshortcode]: /content-management/shortcodes/#youtube "See how to use Hugo's built-in YouTube shortcode."
\ No newline at end of file +[youtubeshortcode]: /content-management/shortcodes/#youtube "See how to use Hugo's built-in YouTube shortcode." |