Skip to content

Commit 842d1a1

Browse files
committed
fix(post): adjust index item styles and markup
1 parent f52a490 commit 842d1a1

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

index.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{{!< default}}
22

3-
<div class="static-content">
3+
<div class="static-content post__list">
44
{{#foreach posts}}
5-
<a class="post__list__item" href="{{url}}">{{title}}</a>
6-
<p><em>{{date published_at format="MMMM DD, YYYY"}}</em></p>
5+
<article class="post__list__item">
6+
<a href="{{url}}">{{title}}</a>
7+
<p>{{date published_at format="MMMM DD, YYYY"}}</p>
8+
</article>
79
{{/foreach}}
810

911
{{pagination}}

src/css/pages/post.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
.post h1,
1414
.post h2,
1515
.post h3 {
16-
font-family: Rubik;
1716
margin-bottom: 0.25rem;
1817
}
1918

@@ -39,11 +38,24 @@
3938
margin-bottom: 0.5em;
4039
}
4140

41+
.post__list {
42+
display: flex;
43+
flex-direction: column;
44+
gap: 24px;
45+
}
46+
4247
.post__list__item {
43-
color: var(--red);
44-
font-size: 1.5rem;
45-
font-weight: 700;
46-
line-height: 2rem;
48+
a {
49+
color: var(--red);
50+
font-size: 1.5rem;
51+
font-weight: 700;
52+
line-height: 2rem;
53+
}
54+
55+
p {
56+
font-style: italic;
57+
margin-top: 8px;
58+
}
4759
}
4860

4961
/* tocbot stuff */

0 commit comments

Comments
 (0)