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

@@ -9,7 +9,7 @@
{%- endblock %}
{% block headextra %}
{% set thumb_url = collection.packages and collection.packages[0].get_thumb_url(3, True) %}
{% set thumb_url = collection.packages and collection.packages[0].get_thumb_url(3, True, "png") %}
{% if thumb_url -%}
<meta name="og:image" content="{{ thumb_url }}">
{%- endif %}