Skip to content

Commit

Permalink
Replace with public YouTube video
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes authored and jasonhemann committed Jan 21, 2023
1 parent 94231e5 commit fe263d7
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/_posts/2010-06-02-post-video-youtube.md
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>
60 changes: 60 additions & 0 deletions docs/_posts/2017-01-23-layout-header-video.md
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
```

0 comments on commit fe263d7

Please sign in to comment.