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