Use webp for thumbnails

This commit is contained in:
rubenwardy
2023-11-10 18:57:49 +00:00
parent 5ce5684ca6
commit 4578cb157f
8 changed files with 57 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
{% macro render_pkgtile(package, show_author) -%}
<li class="packagetile flex-fill"><a href="{{ package.get_url('packages.view') }}">
<img src="{{ package.get_thumb_or_placeholder(2) }}" loading="lazy">
<img src="{{ package.get_thumb_or_placeholder() }}" loading="lazy">
<div class="packagegridscrub"></div>
<div class="packagegridinfo">
<h3>