Reviewed-on: #13 Co-authored-by: Clement <c.boesmier@aptatio.com> Co-committed-by: Clement <c.boesmier@aptatio.com>
15 lines
301 B
Plaintext
15 lines
301 B
Plaintext
---
|
|
import Item from 'components/blog/GridItem.astro';
|
|
import type { Post } from 'types';
|
|
|
|
export interface Props {
|
|
posts: Array<Post>;
|
|
}
|
|
|
|
const { posts } = Astro.props;
|
|
---
|
|
|
|
<div class="grid gap-6 row-gap-5 md:grid-cols-2 lg:grid-cols-4 -mb-6">
|
|
{posts.map((post) => <Item post={post} />)}
|
|
</div>
|