From 6889ba3bd5745675330637ca1b1ffaf41ecf0e23 Mon Sep 17 00:00:00 2001 From: OndraRehounek <ondra.rehounek@seznam.cz> Date: Thu, 14 Apr 2022 13:26:20 +0200 Subject: [PATCH] district & region: Article preview image size fixed --- shared/templates/shared/article_preview.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shared/templates/shared/article_preview.html b/shared/templates/shared/article_preview.html index cd09d053..1fe40b94 100644 --- a/shared/templates/shared/article_preview.html +++ b/shared/templates/shared/article_preview.html @@ -10,8 +10,13 @@ <div class="article-card-cover"> <a href="{{ article.url }}" itemprop="image" itemtype="http://schema.org/ImageObject" itemscope=""> - {% image article.image width-2000 as img %} - <img src="{{ img.url }}" alt="{{ article.title }}"> + {% image article.image fill-356x192 as img %} + {% image article.image fill-714x384 as img_2x %} + <img + src="{{ img.url }}" + srcset="{{ img.url }}, {{ img_2x.url }} 2x" + alt="{{ article.title }}" + > <meta itemprop="url" content="{{ img.url }}"> </a> -- GitLab