リンクにtailing slashをつける

This commit is contained in:
moris 2025-04-29 10:38:47 +09:00
parent b3436621f3
commit 74d2572234
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
<h1>{title}</h1> <h1>{title}</h1>
<ul> <ul>
{#each items as item} {#each items as item}
<li><a href="{item.url}">{item.page}</a></li> <li><a href="./{item.url}/">{item.page}</a></li>
{/each} {/each}
</ul> </ul>
</div> </div>

View file

@ -16,7 +16,7 @@
<div class="posts"> <div class="posts">
{#each data.posts as post} {#each data.posts as post}
<article class:unpublished={!post.metadata.published}> <article class:unpublished={!post.metadata.published}>
<a style='text-decoration:none; color:currentColor;' href="../post/{post.postId}" tabindex="0"> <a style='text-decoration:none; color:currentColor;' href="../post/{post.postId}/" tabindex="0">
<Postgrid {...post.metadata}></Postgrid> <Postgrid {...post.metadata}></Postgrid>
</a> </a>
</article> </article>