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 %} {% 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>