home: fix video not playing if localized file doesn't exist

This commit is contained in:
erciccione 2020-06-15 10:53:21 +02:00
parent 330cddadd7
commit 08ba386ca0
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF

View file

@ -11,8 +11,12 @@ permalink: index.html
<div class="monero-video">
<!--iframe width="560" height="315" src="https://www.youtube.com/embed/TZi9xx6aiuY" frameborder="0" allowfullscreen></iframe-->
<video controls poster="/img/monero-community.png" preload="metadata">
<source src={% if site.lang == 'en' %}"/media/Monero_Promo.m4v"{% else %}"/media/{{ site.lang }}/Monero_Promo.m4v"{% endif %}>
</video>
{% if site.lang != 'pt-br' and site.lang != 'ru' %}
<source src="/media/Monero_Promo.m4v">
{% else %}
<source src="/media/{{ site.lang }}/Monero_Promo.m4v">
{% endif %}
</video>
</div>
</div>
<div class="col-lg-5 col-md-5 col-xs-12">