Re-order conditions, remove one if block
This commit is contained in:
parent
7bec427440
commit
4f2a4d6f8f
|
@ -1,5 +1,8 @@
|
|||
{% macro videoSrc(talk) %}
|
||||
{# TODO: Cleanup once videos have been added to talks properly. #}
|
||||
{% set videoType = talk.video.type %}
|
||||
{% set videoId = talk.video.id %}
|
||||
|
||||
{% if talk.youtube %}
|
||||
{% set videoType = 'youtube' %}
|
||||
{% set videoId = talk.youtube.id %}
|
||||
|
@ -10,11 +13,6 @@
|
|||
{% 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',
|
||||
|
|
Loading…
Reference in a new issue