fix: use trailing slash for pathnames
This commit is contained in:
parent
cbc2f381ab
commit
35477a138a
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue