feat: added keys to sveltes each loop and added img alt

This commit is contained in:
2025-09-30 17:55:06 +02:00
parent f4cf74cee9
commit 416fc9f122

View File

@@ -13,14 +13,14 @@
This is a collection of things I've set up and created that I think might interest others. This is a collection of things I've set up and created that I think might interest others.
</p> </p>
</div> </div>
{#each blogs as blog} {#each blogs as blog (blog.src)}
<a href={blog.src} class="blog-entry"> <a href={blog.src} class="blog-entry">
<div> <div>
<h4>{blog.title}</h4> <h4>{blog.title}</h4>
<p>{blog.desc}</p> <p>{blog.desc}</p>
<p class="date">{blog.date}</p> <p class="date">{blog.date}</p>
</div> </div>
<img src="blog-1.png" class="blog-image" /> <img src="blog-1.png" alt="Preview of the described article" />
</a> </a>
<!-- svelte:component this={page.default} /--> <!-- svelte:component this={page.default} /-->
{/each} {/each}