optimize images

This commit is contained in:
Joshua Seigler 2025-07-06 00:56:48 -04:00
parent 47d646fb66
commit f394e6e90f
31 changed files with 106 additions and 36 deletions

View file

@ -6,7 +6,7 @@
{%- if (limit === 0 or loop.index <= limit) -%}
<li>
{% if item.data.cover %}
<img class="collection-cover" src="{{ item.data.cover | url }}">
{% image item.data.cover, "", "(min-width: 60rem) calc(0.5 * var(--content-width)), var(--content-width)", "lazy", "collection-cover", item.page.inputPath %}
{% endif %}
<a href="{{item.url}}">{{item.data.title}}</a>
{%- if item.data.date -%}