news article template, association cleanup, footer email links to serif

This commit is contained in:
elisejakob
2024-06-27 01:52:50 +02:00
parent d4399d03d3
commit 96f7d6ce91
12 changed files with 85 additions and 33 deletions

View File

@ -50,8 +50,11 @@ export default async function Page({ params }: { params: { slug: string } }) {
return (
<main className="site-main" id="main">
<section className="page-header">
<h1>{news.title}</h1>
<section className="news-header">
<p className="suphead news-details">
Nyhet &mdash; {formatDate(news.firstPublishedAt, "d. MMMM yyyy")}
</p>
<h1 className="news-title">{news.title}</h1>
{featuredImage && (
<figure key={featuredImage.id}>
<Image
@ -61,13 +64,11 @@ export default async function Page({ params }: { params: { slug: string } }) {
height={featuredImage.height}
sizes="100vw"
/>
<figcaption>Bildetekst her?</figcaption>
{featuredImage.attribution && (
<figcaption>{featuredImage.attribution}</figcaption>
)}
</figure>
)}
<p>{formatDate(news.firstPublishedAt, 'd. MMMM yyyy')}</p>
</section>
<section className="pageContent">
<Blocks blocks={news.body} />