1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-22 17:27:32 +00:00

fix: performance fixes

This commit is contained in:
Damillora 2021-04-20 12:01:23 +07:00
parent 93b5a272f7
commit b77d0cb85c
3 changed files with 5 additions and 4 deletions

View File

@ -11,6 +11,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin /> <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" /> <link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" />
<link rel="preload" as="style" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="preload" as="style" href="{{asset "built/styles.css"}}" /> <link rel="preload" as="style" href="{{asset "built/styles.css"}}" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" /> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500&display=swap" />

View File

@ -13,9 +13,9 @@ with a `no-image` class so we can style it accordingly.
<div> <div>
<div class="post-card__image"> <div class="post-card__image">
{{#if feature_image}} {{#if feature_image}}
<img src="{{img_url feature_image size='m'}}"> <img src="{{img_url feature_image size='m'}}" alt="{{title}}">
{{else}} {{else}}
<img src="{{img_url @site.cover_image size='m'}}"> <img src="{{img_url @site.cover_image size='m'}}" alt="{{title}}">
{{/if}} {{/if}}
</div> </div>
</div> </div>