blob: ad27f22977fa6159a7ad4d5472356cfd42545512 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import getPostMetadata from "@/components/updates/getPostMetadata";
import PostPreview from "@/components/updates/PostPreview";
import Header from "@/components/Header";
export const metadata = {
title: 'Updates',
description: 'Follow the latest updates from the Government of Southeastern Islands',
}
export default function Updates() {
const postMetadata = getPostMetadata();
const postPreviews = postMetadata.map((post) => (
<PostPreview key={post.slug} {...post} />
));
return (
<main className="flex flex-col">
<Header title={metadata.title} description={metadata.description} />
<div className="lg:px-60 px-2 py-3">
<div className="px-10 grid grid-cols-1 md:grid-cols-2 gap-4">{postPreviews}</div>
</div>
</main>
)
}
|