Remove .html from internal links
Some checks are pending
/ deploy (push) Waiting to run

This commit is contained in:
Loyyd 2026-07-02 19:44:40 +02:00
parent 670d90cb15
commit f85aca7d58
43 changed files with 202 additions and 97 deletions

View file

@ -1,7 +1,9 @@
---
import SiteSidebar from "./SiteSidebar.astro";
import { normalizeInternalHtmlLinks } from "../lib/urls";
const { articleHtml } = Astro.props;
const normalizedArticleHtml = normalizeInternalHtmlLinks(articleHtml);
---
<div id="main">
@ -10,7 +12,7 @@ const { articleHtml } = Astro.props;
<section id="container" class="two-columns-right">
<div id="content" role="main">
<Fragment set:html={articleHtml} />
<Fragment set:html={normalizedArticleHtml} />
</div>
<SiteSidebar />
</section>