Skip to content
Snippets Groups Projects
Commit 6889ba3b authored by OndraRehounek's avatar OndraRehounek Committed by jan.bednarik
Browse files

district & region: Article preview image size fixed

parent 80166a31
Branches
No related tags found
2 merge requests!468Release,!463district & region: Article preview image size fixed
Pipeline #7660 passed
...@@ -10,8 +10,13 @@ ...@@ -10,8 +10,13 @@
<div class="article-card-cover"> <div class="article-card-cover">
<a href="{{ article.url }}" itemprop="image" itemtype="http://schema.org/ImageObject" itemscope=""> <a href="{{ article.url }}" itemprop="image" itemtype="http://schema.org/ImageObject" itemscope="">
{% image article.image width-2000 as img %} {% image article.image fill-356x192 as img %}
<img src="{{ img.url }}" alt="{{ article.title }}"> {% 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 }}"> <meta itemprop="url" content="{{ img.url }}">
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment