Reviewed-on: #13 Co-authored-by: Clement <c.boesmier@aptatio.com> Co-committed-by: Clement <c.boesmier@aptatio.com>
21 lines
304 B
Plaintext
21 lines
304 B
Plaintext
---
|
|
import Item from 'components/blog/ListItem.astro';
|
|
import type { Post } from 'types';
|
|
|
|
export interface Props {
|
|
posts: Array<Post>;
|
|
}
|
|
|
|
const { posts } = Astro.props;
|
|
---
|
|
|
|
<ul>
|
|
{
|
|
posts.map((post) => (
|
|
<li class="mb-12 md:mb-20">
|
|
<Item post={post} />
|
|
</li>
|
|
))
|
|
}
|
|
</ul>
|