conditinal video tag
This commit is contained in:
parent
569a500abc
commit
37eb90c429
|
@ -40,11 +40,13 @@
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% include cookie-consent.html %}
|
{% include cookie-consent.html %}
|
||||||
{% include scripts.html %}
|
{% include scripts.html %}
|
||||||
|
{% if page.video_path %}
|
||||||
<div class="fullscreen-bg">
|
<div class="fullscreen-bg">
|
||||||
<video autoplay muted loop poster="{{ page.image }}" class="fullscreen-bg__video">
|
<video autoplay muted loop poster="{{ page.image }}" class="fullscreen-bg__video">
|
||||||
<source src="{{ page.video_path }}" type="video/mp4">
|
<source src="{{ page.video_path }}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue