fix: use trailing slash for pathnames

This commit is contained in:
trafficlunar 2025-09-16 21:54:52 +01:00
parent cbc2f381ab
commit 35477a138a

View file

@ -1,8 +1,8 @@
<script lang="ts"> <script lang="ts">
const links = [ const links = [
{ name: "home", url: "/" }, { name: "home", url: "/" },
{ name: "status", url: "/status" }, { name: "status", url: "/status/" },
{ name: "uses", url: "/uses" }, { name: "uses", url: "/uses/" },
]; ];
let pathname = $state("/"); let pathname = $state("/");
@ -25,7 +25,7 @@
style="transform: translateX(calc({activeIndex * 100}% + {activeIndex * 0.375}rem));" style="transform: translateX(calc({activeIndex * 100}% + {activeIndex * 0.375}rem));"
></div> ></div>
{#each links as item, i} {#each links as item}
<!-- Div here to hide the hover background behind the animated background --> <!-- Div here to hide the hover background behind the animated background -->
<div class="flex rounded-sm hover:bg-surface0"> <div class="flex rounded-sm hover:bg-surface0">
<a <a