Skip to content

Commit 3ee63fa

Browse files
committed
fix: adjust blog post list for better layout
1 parent a2c7109 commit 3ee63fa

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

src/pages/blog/index.astro

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,14 @@ const posts = (await getCollection("blog")).sort(
4343
padding: 0;
4444
}
4545
ul li {
46-
width: calc(50% - 1rem);
47-
}
48-
ul li * {
49-
text-decoration: none;
50-
transition: 0.2s ease;
51-
}
52-
ul li:first-child {
5346
width: 100%;
5447
margin-bottom: 1rem;
5548
text-align: center;
5649
}
57-
ul li:first-child img {
50+
ul li img {
5851
width: 100%;
5952
}
60-
ul li:first-child .title {
53+
ul li .title {
6154
font-size: 2.369rem;
6255
}
6356
ul li img {
@@ -67,6 +60,10 @@ const posts = (await getCollection("blog")).sort(
6760
ul li a {
6861
display: block;
6962
}
63+
ul li * {
64+
text-decoration: none;
65+
transition: 0.2s ease;
66+
}
7067
.title {
7168
margin: 0;
7269
color: rgb(var(--black));

0 commit comments

Comments
 (0)