2017-01-24 15:29:34 +01:00
---
title: "Layout: Header Video"
header:
video:
2022-05-27 20:04:06 +02:00
id: -PVofD2A9t8
2017-01-24 15:29:34 +01:00
provider: youtube
categories:
- Layout
- Uncategorized
tags:
- video
- layout
---
2017-01-24 16:09:38 +01:00
This post should display a **header with a responsive video** , if the theme supports it.
2017-01-24 15:29:34 +01:00
## Settings
2017-01-24 16:09:38 +01:00
| Parameter | Required | Description |
|---------- |--------- | ----------- |
| `id` | **Required** | ID of the video |
| `provider` | **Required** | Hosting provider of the video, either `youtube` or `vimeo` |
2017-01-24 15:29:34 +01:00
2017-01-24 16:09:38 +01:00
### YouTube
2017-01-24 15:29:34 +01:00
2022-05-27 20:07:03 +02:00
To embed the following YouTube video at url `https://www.youtube.com/watch?v=-PVofD2A9t8` (long version) or `https://youtu.be/-PVofD2A9t8` (short version) into a post or page's main content you'd use:
2017-01-24 16:09:38 +01:00
```liquid
2022-05-27 20:07:03 +02:00
{% raw %}{% include video id="-PVofD2A9t8" provider="youtube" %}{% endraw %}
2017-01-24 16:09:38 +01:00
```
2022-05-27 20:07:03 +02:00
{% include video id="-PVofD2A9t8" provider="youtube" %}
2017-01-24 16:09:38 +01:00
To embed it as a video header you'd use the following YAML Front Matter
2017-01-24 15:29:34 +01:00
```yaml
header:
video:
2022-05-27 20:07:03 +02:00
id: -PVofD2A9t8
2017-01-24 15:29:34 +01:00
provider: youtube
```
2017-01-24 16:09:38 +01:00
### Vimeo
2018-01-09 20:28:43 +01:00
To embed the following Vimeo video at url `https://vimeo.com/212731897` into a post or page's main content you'd use:
2017-01-24 15:29:34 +01:00
2017-01-24 16:09:38 +01:00
```liquid
2018-01-09 20:28:43 +01:00
{% raw %}{% include video id="212731897" provider="vimeo" %}{% endraw %}
2017-01-24 16:09:38 +01:00
```
2018-01-09 20:28:43 +01:00
{% include video id="212731897" provider="vimeo" %}
2017-01-24 15:29:34 +01:00
2017-01-24 16:09:38 +01:00
To embed it as a video header you'd use the following YAML Front Matter
2017-01-24 15:29:34 +01:00
```yaml
header:
video:
2018-01-09 20:28:43 +01:00
id: 212731897
2017-01-24 15:29:34 +01:00
provider: vimeo
2017-01-24 16:09:38 +01:00
```