use next/link for internal links, even if absolute from the cms
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user