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]
|
tags: [drupalcamp, dcbristol]
|
||||||
draft: true
|
draft: true
|
||||||
---
|
---
|
||||||
|
{% include 'video-embed' with {
|
||||||
<div class="video-full">
|
classes: 'video-full',
|
||||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/honnav4YlAA" frameborder="0" allowfullscreen></iframe>
|
video: {
|
||||||
</div>
|
id: 'honnav4YlAA',
|
||||||
|
attr: {
|
||||||
|
height: '315',
|
||||||
|
width: '560',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} %}
|
||||||
|
|
Loading…
Reference in a new issue