mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-16 15:58:16 +00:00
home: fix video not playing if localized file doesn't exist
This commit is contained in:
parent
330cddadd7
commit
08ba386ca0
1 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,11 @@ 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 %}>
|
||||
{% 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>
|
||||
|
|
Loading…
Reference in a new issue