mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 03:56:41 -04:00
Add autostart option to YouTube shortcode
This commit is contained in:
parent
4cb6923c70
commit
9b5467b466
@ -182,6 +182,11 @@ Copy the ID from behind `v=` and pass it the shortcode:
|
|||||||
|
|
||||||
{{</* youtube w7Ft2ymGmfc */>}}
|
{{</* youtube w7Ft2ymGmfc */>}}
|
||||||
|
|
||||||
|
Furthermore, you can autostart the embedded video by setting the `autostart` parameter to true. Remember that you can't mix named an unamed parameters. Assign the yet unamed video id to the parameter `id` like below too.
|
||||||
|
|
||||||
|
{{</* youtube id="w7Ft2ymGmfc" autoplay="true" */>}}
|
||||||
|
|
||||||
|
|
||||||
### Vimeo
|
### Vimeo
|
||||||
|
|
||||||
Adding a video from [Vimeo](https://vimeo.com/) is equivalent to the YouTube shortcode above. Extract the ID from the URL, e.g.:
|
Adding a video from [Vimeo](https://vimeo.com/) is equivalent to the YouTube shortcode above. Extract the ID from the URL, e.g.:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user