Add width & height data to thumbnails
This commit is contained in:
parent
6ac75c50c6
commit
3029eea1a0
3 changed files with 42 additions and 13 deletions
|
@ -29,10 +29,12 @@
|
|||
<!-- Album cover image -->
|
||||
<div class="uk-card-media-top">
|
||||
<a href="{{ album.get_absolute_url }}">
|
||||
<img src="{{ album.cover_url }}"
|
||||
style="aspect-ratio: {{ album.cover.aspect_ratio }};"
|
||||
<img src="{{ album.cover_image_data.url }}"
|
||||
width="{{ album.cover_image_data.width }}"
|
||||
height="{{ album.cover_image_data.height }}"
|
||||
style="aspect-ratio: {{ album.cover_image_data.aspect_ratio }};"
|
||||
alt="Cover image for {{ album.name }}"
|
||||
title="{{ album.name }}"
|
||||
title="{{ album.name }}"
|
||||
loading="lazy">
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -29,10 +29,12 @@
|
|||
<!-- Album cover image -->
|
||||
<div class="uk-card-media-top">
|
||||
<a href="{{ album.get_absolute_url }}">
|
||||
<img src="{{ album.cover_url }}"
|
||||
style="aspect-ratio: {{ album.cover.aspect_ratio }};"
|
||||
<img src="{{ album.cover_image_data.url }}"
|
||||
width="{{ album.cover_image_data.width }}"
|
||||
height="{{ album.cover_image_data.height }}"
|
||||
style="aspect-ratio: {{ album.cover_image_data.aspect_ratio }};"
|
||||
alt="Cover image for {{ album.name }}"
|
||||
title="{{ album.name }}"
|
||||
title="{{ album.name }}"
|
||||
loading="lazy">
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue