news article template, association cleanup, footer email links to serif
This commit is contained in:
@ -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 — {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} />
|
||||
|
Reference in New Issue
Block a user