Set layout screenshots to lazy loading

This commit is contained in:
Leilukin 2024-06-10 17:46:22 +08:00 committed by Helen Chong
parent 0318c0cd86
commit 70c191410a

View File

@ -12,7 +12,7 @@ eleventyNavigation:
{%- macro siteLayout(params) -%}
## {{ params.title }}
{% for screenshot in params.screenshots %}
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ screenshot.imgAlt }}">
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ screenshot.imgAlt }}" loading="lazy">
{% endfor %}
{%- endmacro -%}