Import image from path

Update page title based on post/project title
Use more optimised Image element
leg
This commit is contained in:
Michał Gdula 2024-05-24 19:47:03 +01:00
parent 5c41d81288
commit 44a15873f4
9 changed files with 60 additions and 25 deletions

View file

@ -1,8 +1,11 @@
---
import { Image } from "astro:assets";
import leg from "../../public/leg.webp";
---
<a class="button" id="music" href="https://www.last.fm/user/Fluffy_Bean_" target="_blank">
<img src="/leg.webp" alt="Track cover art" id="music-image"/>
<Image src={leg} width="64" height="64" loading="eager" alt="Track cover art" id="music-image" />
<ul>
<li id="music-title">Track Name</li>
<li id="music-artist">by Artist</li>