fix cache

This commit is contained in:
Adrien Beudin 2016-05-11 01:07:24 +02:00
parent a3a0aa44f2
commit 4fc4868b06
3 changed files with 11 additions and 2 deletions

View File

@ -9,6 +9,8 @@ def remove_superficial_options(options):
del cleaned_options["name"]
if "text" in cleaned_options:
del cleaned_options["text"]
if "type" in cleaned_options:
del cleaned_options["type"]
return cleaned_options

View File

@ -253,7 +253,13 @@ nav ul li > a.item-menu::before {
font-style: normal;
}
.gallery-cover video.fillWidth,
.gallery-cover img.fillWidth {
.gallery-cover video.fillWidth {
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
.gallery-cover img.fillWidth {
width: 100%;
}

View File

@ -32,6 +32,7 @@
{% endif %}
{% if video %}
<div class="gallery-cover">
<img class="fillWidth" alt="" src="{{ video.generate_thumbnail("900") }}">
<video autoplay loop muted class="fillWidth">
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
</video>