use next/link for internal links, even if absolute from the cms

This commit is contained in:
2026-07-10 03:24:00 +02:00
parent ca397070ea
commit 3892624382
12 changed files with 92 additions and 53 deletions
+4 -4
View File
@@ -4,6 +4,7 @@ import { getClient } from "@/app/client";
import { Breadcrumb } from "@/components/general/Breadcrumb";
import { ImageFigure } from "@/components/general/Image";
import { PageContent } from "@/components/general/PageContent";
import { RichText } from "@/components/general/RichText";
import { formatDate } from "@/lib/date";
const newsBySlugQuery = graphql(`
@@ -47,10 +48,9 @@ export function NewsPageView({ news }: NewsPageViewProps) {
/>
<h1 className="news-title">{news.title}</h1>
{news.lead && (
<div
className="lead"
dangerouslySetInnerHTML={{ __html: news.lead }}
/>
<div className="lead">
<RichText content={news.lead} />
</div>
)}
{featuredImage && (
<ImageFigure