Skip to content

Commit

Permalink
Change blog list style
Browse files Browse the repository at this point in the history
  • Loading branch information
kubgus committed Aug 14, 2024
1 parent 358d93b commit 143079f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/blog-preview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { post } = Astro.props;
const dateString = new Date(post.frontmatter.date).toLocaleString("en-US", { month: "long", day: "numeric", year: "numeric" });
---

<figure class="container">
<figure>
<a href={post.url}>
<h1>{post.frontmatter.title}</h1>
<div class="info">
Expand All @@ -20,8 +20,12 @@ const dateString = new Date(post.frontmatter.date).toLocaleString("en-US", { mon
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
border-width: 2px;
padding: 1rem 0.5rem;
border-top: 1px solid var(--secondary-background-dark);
}

figure:last-child {
border-bottom: 1px solid var(--secondary-background-dark);
}

a {
Expand Down
6 changes: 6 additions & 0 deletions src/components/content/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ posts.sort((a, b) => new Date(b.frontmatter.date).valueOf() - new Date(a.frontma
))
}
</div>

<style>
h1 {
margin-bottom: 1rem;
}
</style>

0 comments on commit 143079f

Please sign in to comment.