mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
added explicit width,height to images
This commit is contained in:
parent
aecbbcf022
commit
dd3c0d87d8
3 changed files with 11 additions and 3 deletions
|
|
@ -6,9 +6,9 @@
|
|||
<br><br>
|
||||
<div class="gallery">
|
||||
{% for page in section.pages -%}
|
||||
{% set image = resize_image(path=page.extra.picture_src, width=260, height=180, op="fit_width") %}
|
||||
{% set image = resize_image(path=page.extra.picture_src, width=260*2, height=180*2, op="fit_width", format="avif") %}
|
||||
<a href="{{ page.permalink }}">
|
||||
<img src="{{ image.url }}" alt="{{page.description}}" fetchpriority=high />
|
||||
<img src="{{ image.url }}" height="{{image.height}}" width="{{image.width}}" alt="{{page.description}}" fetchpriority=high />
|
||||
</a>
|
||||
{%- endfor %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue