投稿一覧のグリッドをarticle要素に変更

This commit is contained in:
moris 2025-03-03 08:55:24 +09:00
parent 6203013656
commit 707bf73ef5

View file

@ -15,11 +15,11 @@
<div class='contain'> <div class='contain'>
<div class="posts"> <div class="posts">
{#each data.posts as post} {#each data.posts as post}
<div class="post" class:unpublished={!post.metadata.published}> <article class="post" class:unpublished={!post.metadata.published}>
<a style='text-decoration: none;' href="../post/{post.postId}" tabindex="0"> <a style='text-decoration: none;' href="../post/{post.postId}" tabindex="0">
<Postgrid id={post.postId} {...post.metadata}></Postgrid> <Postgrid id={post.postId} {...post.metadata}></Postgrid>
</a> </a>
</div> </article>
{/each} {/each}
{#if data.posts.length%4} {#if data.posts.length%4}
{#each Array(4-data.posts.length%4) as i} {#each Array(4-data.posts.length%4) as i}