Skip to content

Commit

Permalink
tweak post list
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Jul 6, 2024
1 parent c90e752 commit 45d93a7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,29 @@ interface Props {
post: CollectionEntry<"blog">;
}
const { post } = Astro.props;
// const { remarkPluginFrontmatter } = await post.render();
---

<li class="post-container">
<div>
<div class="grid-span-1">
<h3>
<a href={`/blog/${post.slug}`}>
{post.data.title}
</a>
</h3>
</div>

<p class="py-1">
{
post.data.pubDate.toLocaleDateString("en-uk", {
year: "numeric",
month: "short",
day: "numeric",
})
}
</p>

<p>
{post.data.summary}
</p>
Expand All @@ -25,6 +37,9 @@ const { post } = Astro.props;
background-color: white;
display: grid;
grid-template-rows: auto auto;
grid-template-columns: auto max-content;
align-items: top;
column-gap: 1rem;

padding: 1rem;
}
Expand Down

0 comments on commit 45d93a7

Please sign in to comment.