mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 08:44:44 -04:00
Fix typo
This commit is contained in:
parent
89bafa4907
commit
43d12b44ca
@ -119,7 +119,7 @@ You could then include the following as part of your shortcode templating:
|
|||||||
|
|
||||||
```
|
```
|
||||||
{{ if .IsNamedParams }}
|
{{ if .IsNamedParams }}
|
||||||
<img src="{{.Get "src" alt="">
|
<img src="{{.Get "src" }}" alt="">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="{{.Get 0}}" alt="">
|
<img src="{{.Get 0}}" alt="">
|
||||||
{{ end }}.
|
{{ 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."
|
[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."
|
[templates]: /templates/ "The templates section of the Hugo docs."
|
||||||
[vimeoexample]: #single-flexible-example-vimeo
|
[vimeoexample]: #single-flexible-example-vimeo
|
||||||
[youtubeshortcode]: /content-management/shortcodes/#youtube "See how to use Hugo's built-in YouTube shortcode."
|
[youtubeshortcode]: /content-management/shortcodes/#youtube "See how to use Hugo's built-in YouTube shortcode."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user