layout | title | description | menubar | show_sidebar |
---|---|---|---|---|
page |
Page With Video |
A page with an embedded YouTube video |
example_menu |
false |
This is an example page with an embedded YouTube video.
{% include youtube.html video="iRuJufELrWo" %}
To embed the video, use an include where you want the video to appear and then pass in the YouTube id as the video variable.
{% raw %}
{% include youtube.html video="videoid" %}
{% endraw %}
You can optionally include a start time in seconds. This works the same as the ?t= parameter in Youtube URLs.
{% raw %}
{% include youtube.html video="videoid" time=210 %}
{% endraw %}
It is also possible to embed Vimeo videos in a similar way
{% raw %}
{% include vimeo.html video="videoid" %}
{% endraw %}