add lead to news articles

This commit is contained in:
2024-07-13 23:50:42 +02:00
parent 9cd47561d4
commit fcbd74ed34
6 changed files with 39 additions and 8 deletions

View File

@ -55,6 +55,9 @@ export default async function Page({ params }: { params: { slug: string } }) {
Nyhet — {formatDate(news.firstPublishedAt, "d. MMMM yyyy")}
</p>
<h1 className="news-title">{news.title}</h1>
{news.lead && (
<p className="lead" dangerouslySetInnerHTML={{ __html: news.lead }} />
)}
{featuredImage && (
<ImageFigure
src={featuredImage.url}