Add page hero video for vimeo/youtube using embedresponsively.com code (#788)
This commit is contained in:
51
docs/_posts/2017-01-23-layout-header-video.md
Normal file
51
docs/_posts/2017-01-23-layout-header-video.md
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
title: "Layout: Header Video"
|
||||
header:
|
||||
video:
|
||||
id: XsxDH4HcOWA
|
||||
provider: youtube
|
||||
categories:
|
||||
- Layout
|
||||
- Uncategorized
|
||||
tags:
|
||||
- video
|
||||
- layout
|
||||
---
|
||||
|
||||
This post should display a **header with a reponsive video**, if the theme supports it.
|
||||
|
||||
## Settings
|
||||
|
||||
|---
|
||||
| Parameter | Required | Description |
|
||||
|-|-
|
||||
| `id` | **Required** | ID of the video
|
||||
| `provider` | **Required** | Hosting provider of the video, either 'youtube' or 'vimeo'
|
||||
|---
|
||||
|
||||
## YouTube
|
||||
|
||||
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):
|
||||
|
||||
```yaml
|
||||
header:
|
||||
video:
|
||||
id: XsxDH4HcOWA
|
||||
provider: youtube
|
||||
```
|
||||
|
||||
{% include responsive_video id="XsxDH4HcOWA" provider="youtube" %}
|
||||
|
||||
## Vimeo
|
||||
|
||||
Here is a Vimeo example for the video at url `https://vimeo.com/97649261`:
|
||||
|
||||
```yaml
|
||||
header:
|
||||
video:
|
||||
id: 97649261
|
||||
provider: vimeo
|
||||
```
|
||||
|
||||
{% include responsive_video id="97649261" provider="vimeo" %}
|
||||
|
Reference in New Issue
Block a user