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

fix: Post thumbnail once more

This commit is contained in:
Damillora 2021-04-20 17:43:08 +07:00
parent 58bcb00b18
commit 506123bfac
3 changed files with 7 additions and 7 deletions

2
assets/js/lib/jquery-3.6.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -27,9 +27,7 @@
{{> "site-header"}}
<div>
{{{body}}}
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</div>
<script src="{{asset "built/yuika.js"}}"></script>
{{{block "scripts"}}}

View File

@ -13,11 +13,11 @@ 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"
src="{{img_url feature_image size=" m"}}" alt="{{title}}" loading="lazy">
<img srcset="{{img_url feature_image size="s"}} 300w"
src="{{img_url feature_image size="m"}}" alt="{{title}}" loading="lazy">
{{else}}
<img srcset="{{img_url feature_image size=" s"}} 300w"
src="{{img_url @site.cover_image size=" m"}}" alt="{{title}}" loading="lazy">
<img srcset="{{img_url feature_image size="s"}} 300w"
src="{{img_url @site.cover_image size="m"}}" alt="{{title}}" loading="lazy">
{{/if}}
</div>
</div>