1
0
mirror of https://github.com/Damillora/Yuika synced 2024-12-25 13:43:46 +00:00

fix: fix image size

This commit is contained in:
Damillora 2021-04-20 16:07:34 +07:00
parent 8bf1119b0b
commit 10fdcb80b1

View File

@ -13,14 +13,14 @@ for it, and apply those styles to the <header> tag. Else, we just output a <head
<div>
<div class="post-card__image">
{{#if feature_image}}
<img srcset="{{img_url feature_image size=" s"}} 300w, {{img_url feature_image size="m" }} 600w,
<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"
sizes="(max-width: 1000px) 400px, 700px" src="{{img_url feature_image size=" m"}}" alt="{{title}}">
{{else}}
<img srcset="{{img_url @site.cover_image size=" s"}} 300w, {{img_url @site.cover_image size="m" }} 600w,
<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"
sizes="(max-width: 1000px) 400px, 700px" src="{{img_url @site.cover_image size=" m"}}"
alt="{{title}}">
{{/if}}
</div>
</div>
</div>