Set layout screenshots to lazy loading

This commit is contained in:
Helen Chong 2024-06-10 17:46:22 +08:00
parent 49fa8517be
commit 8480054f42
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ eleventyNavigation:
{%- macro siteLayout(params) -%} {%- macro siteLayout(params) -%}
## {{ params.title }} ## {{ params.title }}
{% for screenshot in params.screenshots %} {% 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 %} {% endfor %}
{%- endmacro -%} {%- endmacro -%}