Improve LH score / SEO
All checks were successful
/ test (push) Successful in 13s

This commit is contained in:
Soph :3 2024-08-01 23:13:52 +03:00
parent 7255080d31
commit eac9f80871
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
4 changed files with 16 additions and 20 deletions

View file

@ -27,7 +27,7 @@ const Blog = () => {
json.filename = blog;
metadatas.push(json);
}
blogPosts[1](metadatas);
})();
}, [])
@ -50,8 +50,9 @@ const Blog = () => {
return <ul>
{blogPosts[0].map((n) => {
return <li>
<a onClick={
() => {
<a href={"https://sad.ovh/?md=" + n.filename} onClick={
(e) => {
e.preventDefault();
pageOpen[1](n);
}
}>{n.title} (created {new Date(n.time * 1000).toLocaleString()})</a>

View file

@ -71,6 +71,7 @@ const lastFM = {
const img = document.createElement("img");
img.width = 150
img.height = 150
img.alt = "last.fm album art"
img.src = track.image.at(-1)?.["#text"]!;
lastFMElement?.appendChild(img);
@ -93,12 +94,4 @@ const lastFM = {
div.appendChild(spanTitle)
lastFMElement?.appendChild(div);
/* <img src="https://lastfm.freetls.fastly.net/i/u/300x300/400560416eb0c37bbc407cd4279c7899.jpg" width="150" height="150">
<div>
<h1>listening to now</h1>
<span style="font-size:x-large">Bladee</span>
<span style="font-size:x-large">Open your Eyes (hymn)</span>
</div>*/
})();