1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-23 01:37:33 +00:00

fix: fix post thumbnail srcset

This commit is contained in:
Damillora 2021-04-20 17:46:57 +07:00
parent 276119e573
commit bbb024de2d

View File

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