Merge pull request #1046

home: fix video not playing if localized file doesn't exist
This commit is contained in:
luigi1111 2020-07-31 15:09:04 -05:00 committed by GitHub
commit 533bfc236c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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">