Serve routes without .html file extension

This commit is contained in:
thiloho
2024-09-07 18:22:58 +02:00
parent 6a7e64ccaf
commit 9a8a333823
7 changed files with 11 additions and 11 deletions

View File

@@ -43,7 +43,7 @@
{#each categorizedArticles[key] as { title }}
{@const articleFileName = title.toLowerCase().split(" ").join("-")}
<li>
<a href="{isIndexPage ? './articles' : '.'}/{articleFileName}.html">{title}</a>
<a href="{isIndexPage ? './articles' : '.'}/{articleFileName}">{title}</a>
</li>
{/each}
</ul>
@@ -52,7 +52,7 @@
</ul>
</section>
{/if}
<a href="../">
<a href={isIndexPage ? "." : ".."}>
{#if logoType === "text"}
<strong>{logo}</strong>
{:else}