Files
website/node_modules/starlight-blog/components/Posts.astro
2024-05-06 17:15:30 -04:00

24 lines
362 B
Plaintext

---
import type { StarlightBlogEntry } from '../libs/content'
import Preview from './Preview.astro'
interface Props {
entries: StarlightBlogEntry[]
}
const { entries } = Astro.props
---
<div class="posts">
{entries.map((entry) => <Preview {entry} />)}
</div>
<style>
.posts {
display: flex;
flex-direction: column;
gap: 3rem;
}
</style>