Extract a video embed partial

This commit is contained in:
Oliver Davies 2019-05-30 23:29:42 +01:00
parent dbf7285181
commit bab8565ada
2 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,9 @@
<div class="{{ classes }}">
<iframe
src="https://www.youtube.com/embed/{{ video.id }}"
height="{{ video.attr.height }}"
width="{{ video.attr.width }}"
frameborder="0"
allowfullscreen
></iframe>
</div>

View file

@ -4,7 +4,13 @@ excerpt: DrupalCamp Bristol is returning next month, and we have just announced
tags: [drupalcamp, dcbristol]
draft: true
---
<div class="video-full">
<iframe width="560" height="315" src="https://www.youtube.com/embed/honnav4YlAA" frameborder="0" allowfullscreen></iframe>
</div>
{% include 'video-embed' with {
classes: 'video-full',
video: {
id: 'honnav4YlAA',
attr: {
height: '315',
width: '560',
}
}
} %}