Add WordCamp Bristol talk on stream
This commit is contained in:
parent
a10e24c3ef
commit
7bec427440
|
@ -1,29 +1,45 @@
|
||||||
{% if page.youtube.id or page.vimeo.id %}
|
{% macro videoSrc(talk) %}
|
||||||
|
{# TODO: Cleanup once videos have been added to talks properly. #}
|
||||||
|
{% if talk.youtube %}
|
||||||
|
{% set videoType = 'youtube' %}
|
||||||
|
{% set videoId = talk.youtube.id %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if talk.vimeo %}
|
||||||
|
{% set videoType = 'vimeo' %}
|
||||||
|
{% set videoId = talk.vimeo.id %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if talk.video %}
|
||||||
|
{% set videoType = talk.video.type %}
|
||||||
|
{% set videoId = talk.video.id %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% set srcUrls = {
|
||||||
|
youtube: '//www.youtube.com/embed',
|
||||||
|
videopress: 'https://videopress.com/embed',
|
||||||
|
vimeo: 'https://player.vimeo.com/video',
|
||||||
|
} %}
|
||||||
|
|
||||||
|
{{ srcUrls[videoType] ~ '/' ~ videoId }}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% from _self import videoSrc %}
|
||||||
|
|
||||||
|
{# TODO: Cleanup once videos have been added to talks properly. #}
|
||||||
|
{% if page.youtube.id or page.vimeo.id or page.video %}
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<h2 class="mb-2">Video</h2>
|
<h2 class="mb-2">Video</h2>
|
||||||
|
|
||||||
<div class="video-full">
|
<div class="video-full">
|
||||||
{% if page.youtube.id %}
|
|
||||||
<iframe
|
<iframe
|
||||||
width="678"
|
width="678"
|
||||||
height="408"
|
height="408"
|
||||||
src="//www.youtube.com/embed/{{ page.youtube.id }}"
|
src="{{ videoSrc(page) }}"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
>
|
>
|
||||||
</iframe>
|
</iframe>
|
||||||
{% elseif page.vimeo.id %}
|
|
||||||
<iframe
|
|
||||||
src="https://player.vimeo.com/video/{{ page.vimeo.id }}"
|
|
||||||
width="640"
|
|
||||||
height="360"
|
|
||||||
frameborder="0"
|
|
||||||
webkitallowfullscreen
|
|
||||||
mozallowfullscreen
|
|
||||||
allowfullscreen
|
|
||||||
>
|
|
||||||
</iframe>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -5,6 +5,9 @@ speakerdeck:
|
||||||
id: 10ca51f23560443d83b898a92929b4b3
|
id: 10ca51f23560443d83b898a92929b4b3
|
||||||
ratio: '1.77777777777778'
|
ratio: '1.77777777777778'
|
||||||
url: https://speakerdeck.com/opdavies/taking-flight-with-tailwind-css
|
url: https://speakerdeck.com/opdavies/taking-flight-with-tailwind-css
|
||||||
|
video:
|
||||||
|
type: videopress
|
||||||
|
id: fVDoXOZB
|
||||||
tags: [css, tailwind, meetup]
|
tags: [css, tailwind, meetup]
|
||||||
events:
|
events:
|
||||||
- event: drupal_bristol
|
- event: drupal_bristol
|
||||||
|
|
Reference in a new issue