You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/_docs/14-helpers.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,16 @@ And then drop-in the feature row include in the body where you'd like it to appe
189
189
**More Feature Row Goodness:** A [few more examples]({{ "/splash-page/" | absolute_url }}) and [source code](https://github.com/{{ site.repository }}/blob/master/docs/_pages/splash-page.md) can be seen in the demo site.
190
190
{: .notice--info}
191
191
192
+
## Video
193
+
194
+
Embed a responsive video from YouTube or Vimeo.
195
+
196
+
```liquid
197
+
{% raw %}{% include responsive_video id="97649261" provider="vimeo" %}{% endraw %}
198
+
```
199
+
200
+
{% include responsive_video id="97649261" provider="vimeo" %}
201
+
192
202
## Table of Contents
193
203
194
204
To include an [auto-generated table of contents](http://kramdown.rubyforge.org/converter/html.html#toc) for posts and pages, add the following helper before any actual content in your post or page.
@@ -280,4 +290,4 @@ To add a navigation list to a post or page's main content instead of the sidebar
280
290
281
291
| Parameter | Required | Description |
282
292
| --------- | -------- | ----------- |
283
-
| items | **Required** | Name of the links array found in `_data/navigation.yml`. |
293
+
| items | **Required** | Name of the links array found in `_data/navigation.yml`. |
This post should display a **header with a reponsive video**, if the theme supports it.
16
+
17
+
## Settings
18
+
19
+
|---
20
+
| Parameter | Required | Description |
21
+
|-|-
22
+
| `id` | **Required** | ID of the video
23
+
| `provider` | **Required** | Hosting provider of the video, either 'youtube' or 'vimeo'
24
+
|---
25
+
26
+
## YouTube
27
+
28
+
Here is a YouTube example for the video at url `https://www.youtube.com/watch?v=XsxDH4HcOWA` (long version) or `https://youtu.be/XsxDH4HcOWA` (short version):
29
+
30
+
```yaml
31
+
header:
32
+
video:
33
+
id: XsxDH4HcOWA
34
+
provider: youtube
35
+
```
36
+
37
+
{% include responsive_video id="XsxDH4HcOWA" provider="youtube" %}
38
+
39
+
## Vimeo
40
+
41
+
Here is a Vimeo example for the video at url `https://vimeo.com/97649261`:
42
+
43
+
```yaml
44
+
header:
45
+
video:
46
+
id: 97649261
47
+
provider: vimeo
48
+
```
49
+
50
+
{% include responsive_video id="97649261" provider="vimeo" %}
0 commit comments