[mod] let's use a thumbnail for the cover finally

This commit is contained in:
Laurent Peuch 2015-12-09 09:58:37 +01:00
parent 28bc05bed1
commit f54aa3c6fb

View File

@ -30,8 +30,7 @@
{% if gallery.date %}<div class="gallery-datetime">{{ gallery.date.strftime("%d %B %Y") }}</div>{% endif %} {% if gallery.date %}<div class="gallery-datetime">{{ gallery.date.strftime("%d %B %Y") }}</div>{% endif %}
</div> </div>
</a> </a>
{{ helpers.copy_image(gallery.cover) }} <div class="gallery-cover" style="background-image: url('{{ helpers.generate_thumbnail(gallery.cover, "x900") }}');"></div>
<div class="gallery-cover" style="background-image: url('{{ gallery.cover }}');"></div>
</div><!-- comment tricks against space between inline-block </div><!-- comment tricks against space between inline-block
-->{% endfor %} -->{% endfor %}
</div> </div>