mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Fix typo
This commit is contained in:
1 parent
89bafa4907
commit
43d12b44ca
1 file changed
+2
-2
@@ -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."
|
||||||
Reference in new issue
Block a user