mirror of
https://github.com/monero-project/monero-site.git
synced 2025-01-10 21:05:04 +00:00
Merge pull request #1046
home: fix video not playing if localized file doesn't exist
This commit is contained in:
commit
533bfc236c
1 changed files with 6 additions and 2 deletions
|
@ -11,8 +11,12 @@ permalink: index.html
|
||||||
<div class="monero-video">
|
<div class="monero-video">
|
||||||
<!--iframe width="560" height="315" src="https://www.youtube.com/embed/TZi9xx6aiuY" frameborder="0" allowfullscreen></iframe-->
|
<!--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">
|
<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' %}
|
||||||
</video>
|
<source src="/media/Monero_Promo.m4v">
|
||||||
|
{% else %}
|
||||||
|
<source src="/media/{{ site.lang }}/Monero_Promo.m4v">
|
||||||
|
{% endif %}
|
||||||
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-5 col-md-5 col-xs-12">
|
<div class="col-lg-5 col-md-5 col-xs-12">
|
||||||
|
|
Loading…
Reference in a new issue