forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "Post: Video (YouTube)" | ||
categories: | ||
- Post Formats | ||
tags: | ||
- Post Formats | ||
--- | ||
|
||
YouTube video embed below. | ||
|
||
<iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/-PVofD2A9t8?controls=0" frameborder="0" allowfullscreen></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: "Layout: Header Video" | ||
header: | ||
video: | ||
id: -PVofD2A9t8 | ||
provider: youtube | ||
categories: | ||
- Layout | ||
- Uncategorized | ||
tags: | ||
- video | ||
- layout | ||
--- | ||
|
||
This post should display a **header with a responsive 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 | ||
|
||
To embed the following YouTube video at url `https://www.youtube.com/watch?v=XsxDH4HcOWA` (long version) or `https://youtu.be/XsxDH4HcOWA` (short version) into a post or page's main content you'd use: | ||
|
||
```liquid | ||
{% raw %}{% include video id="XsxDH4HcOWA" provider="youtube" %}{% endraw %} | ||
``` | ||
|
||
{% include video id="XsxDH4HcOWA" provider="youtube" %} | ||
|
||
To embed it as a video header you'd use the following YAML Front Matter | ||
|
||
```yaml | ||
header: | ||
video: | ||
id: XsxDH4HcOWA | ||
provider: youtube | ||
``` | ||
### Vimeo | ||
To embed the following Vimeo video at url `https://vimeo.com/212731897` into a post or page's main content you'd use: | ||
|
||
```liquid | ||
{% raw %}{% include video id="212731897" provider="vimeo" %}{% endraw %} | ||
``` | ||
|
||
{% include video id="212731897" provider="vimeo" %} | ||
|
||
To embed it as a video header you'd use the following YAML Front Matter | ||
|
||
```yaml | ||
header: | ||
video: | ||
id: 212731897 | ||
provider: vimeo | ||
``` |