conditinal video tag

This commit is contained in:
sakrecoer 2020-08-10 13:17:07 +02:00
parent 569a500abc
commit 37eb90c429

View file

@ -40,11 +40,13 @@
{% endunless %}
{% include cookie-consent.html %}
{% include scripts.html %}
{% if page.video_path %}
<div class="fullscreen-bg">
<video autoplay muted loop poster="{{ page.image }}" class="fullscreen-bg__video">
<source src="{{ page.video_path }}" type="video/mp4">
</video>
</div>
{% endif %}
</body>
</html>