Skip to content

Commit 87beac6

Browse files
committed
Testing youtube embeds
1 parent 7f02add commit 87beac6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

explainers/_includes/youtube.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="embed-container">
2+
<iframe width="640" height="390"
3+
src="https://www.youtube.com/embed/{{ include.id }}"
4+
frameborder="0" allowfullscreen></iframe>
5+
</div>
6+
<style>
7+
.embed-container {
8+
position: relative;
9+
padding-bottom: 56.25%;
10+
height: 0;
11+
overflow: hidden;
12+
max-width: 100%;
13+
}
14+
.embed-container iframe,
15+
.embed-container object,
16+
.embed-container embed {
17+
position: absolute;
18+
top: 0;
19+
left: 0;
20+
width: 100%;
21+
height: 100%;
22+
}
23+
</style>

explainers/explainer-template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ Have feedback? We want to hear it! *[Issue #123](link to issue announcing explai
3535
| Edge release | Changelog |
3636
|--------------|---------------------------------------------------------|
3737
| *version.number* | *Description of changes.* |
38+
39+
*(Optional: you can include YouTube videos by ID with the following syntax)*
40+
41+
{% include youtube.html id="JLMbpiywVxQ" %}

0 commit comments

Comments
 (0)