optimize images
This commit is contained in:
parent
47d646fb66
commit
f394e6e90f
31 changed files with 106 additions and 36 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue