mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
decreased quality on gallery preview
This commit is contained in:
parent
dd3c0d87d8
commit
eaa2b2734a
2 changed files with 3 additions and 3 deletions
|
|
@ -6,9 +6,9 @@
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="gallery">
|
<div class="gallery">
|
||||||
{% for page in section.pages -%}
|
{% for page in section.pages -%}
|
||||||
{% set image = resize_image(path=page.extra.picture_src, width=260*2, height=180*2, op="fit_width", format="avif") %}
|
{% set image = resize_image(path=page.extra.picture_src, width=260*2, height=180*2, op="fit_width", format="avif", quality=60, speed=4) %}
|
||||||
<a href="{{ page.permalink }}">
|
<a href="{{ page.permalink }}">
|
||||||
<img src="{{ image.url }}" height="{{image.height}}" width="{{image.width}}" alt="{{page.description}}" fetchpriority=high />
|
<img src="{{ image.url }}" height="{{image.height}}" width="{{image.width}}" alt="{{page.description}}" decoding="async" fetchpriority=high />
|
||||||
</a>
|
</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
{# {% set image = resize_image(path=src, height=mdata.height, width=mdata.width, format="webp") %} #}
|
{# {% set image = resize_image(path=src, height=mdata.height, width=mdata.width, format="webp") %} #}
|
||||||
|
|
||||||
<figure class="{% if class %} {{ class }} {% endif %}">
|
<figure class="{% if class %} {{ class }} {% endif %}">
|
||||||
<img src="{{ src }}" loading="lazy" alt="{{caption | default(value='')}}" decoding="async" class="zoomable">
|
<img src="{{ src }}" loading="lazy" height="{{mdata.height}}" width="{{mdata.width}}" alt="{{caption | default(value='')}}" decoding="async" class="zoomable">
|
||||||
{% if caption != "" %}
|
{% if caption != "" %}
|
||||||
<figcaption>{{ caption | markdown() | safe }}</figcaption>
|
<figcaption>{{ caption | markdown() | safe }}</figcaption>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue