diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
| commit | fcc2f4704e39b0e69b377cc138f75027721dac22 (patch) | |
| tree | 732fc94b354a26c08fba9cc9059f9c6c900182be /src/components/blog/List.astro | |
Initial template
Diffstat (limited to 'src/components/blog/List.astro')
| -rw-r--r-- | src/components/blog/List.astro | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/blog/List.astro b/src/components/blog/List.astro new file mode 100644 index 0000000..6a80ae3 --- /dev/null +++ b/src/components/blog/List.astro @@ -0,0 +1,20 @@ +--- +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> |
