fix: readd native lazy loading

This commit is contained in:
Damillora 2021-04-20 16:29:45 +07:00
parent 8b5dc4f853
commit fc67f3b40b
1 changed files with 3 additions and 3 deletions

View File

@ -15,11 +15,11 @@ for it, and apply those styles to the <header> tag. Else, we just output a <head
{{#if feature_image}}
<img srcset="{{img_url feature_image size=" s"}} 300w, {{img_url feature_image size="m" }} 600w,
{{img_url feature_image size="l" }} 1000w, {{img_url feature_image size="xl" }} 2000w"
src="{{img_url feature_image size=" m"}}" alt="{{title}}">
src="{{img_url feature_image size=" m"}}" alt="{{title}}" loading="lazy">
{{else}}
<img srcset="{{img_url @site.cover_image size=" s"}} 300w, {{img_url @site.cover_image size="m" }} 600w,
{{img_url @site.cover_image size="l" }} 1000w, {{img_url @site.cover_image size="xl" }} 2000w"
src="{{img_url @site.cover_image size=" m"}}" alt="{{title}}">
src="{{img_url @site.cover_image size=" m"}}" alt="{{title}}" loading="lazy">
{{/if}}
</div>
</div>
</div>