Extract a video embed partial
This commit is contained in:
parent
dbf7285181
commit
bab8565ada
9
source/_partials/video-embed.html.twig
Normal file
9
source/_partials/video-embed.html.twig
Normal 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>
|
|
@ -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',
|
||||
}
|
||||
}
|
||||
} %}
|
||||
|
|
Reference in a new issue