Use keyed each loops to avoid errors
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Kaan Barmore-Genç 2024-07-09 03:10:56 +00:00
parent 66f702059c
commit 62212201a7
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@
</svelte:head>
<ol class="years">
{#each groupPosts(data.posts).entries() as [year, posts]}
{#each groupPosts(data.posts).entries() as [year, posts] (year)}
<li>
<h2>{year}</h2>
<BlogPostList {posts} />

View file

@ -9,7 +9,7 @@
</script>
<ol class="posts">
{#each posts as post}
{#each posts as post (post.meta.slug)}
<BlogPost {post} {showYear} {showReadingTime} />
{/each}
</ol>