mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Serve routes without .html file extension
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
<Head {title} {favicon} nestingLevel={1} {metaDescription} />
|
||||
|
||||
<Nav {logoType} {logo} />
|
||||
<Nav {logoType} {logo} isIndexPage={false} />
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<p>{article.publication_date}</p>
|
||||
<p>
|
||||
<strong>
|
||||
<a href="./articles/{articleFileName}.html">{article.title}</a>
|
||||
<a href="./articles/{articleFileName}">{article.title}</a>
|
||||
</strong>
|
||||
</p>
|
||||
{#if article.meta_description}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
title: string;
|
||||
favicon: string;
|
||||
nestingLevel?: number;
|
||||
metaDescription: string | null;
|
||||
metaDescription?: string | null;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user