blob: cbc94e22fc4178adc4baa6a1b79054e919478153 (
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 "./getPostMetadata";
import PostPreview from "./PostPreview";
import Header from "../components/Header";
export const metadata = {
title: 'Updates',
description: 'Follow the latest updates from the Government of Alure Regions',
}
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>
)
}
|