File tree Expand file tree Collapse file tree 3 files changed +34
-19
lines changed Expand file tree Collapse file tree 3 files changed +34
-19
lines changed Original file line number Diff line number Diff line change 1
- < div class ="blog__post ">
2
- < p > {{ post.date | date: '%B %-d, %Y' }}</ p >
3
-
4
- < dl >
5
- < dt > < a href ="{{ post.url }} "> {{ post.title | strip_html }}</ a > </ dt >
6
- < dd > {{ post.content | strip_html | truncatewords: 30 }}</ dd >
7
- </ dl >
8
- </ div >
1
+ < li class ="blog__post ">
2
+ < div class ="post-date ">
3
+ < p > {{ post.date | date: '%B %-d, %Y' }}</ p >
4
+ </ div >
5
+ < div class ="post-container ">
6
+ < h3 >
7
+ < a href ="{{ post.url }} "> {{ post.title | strip_html }}</ a >
8
+ </ h3 >
9
+ < p >
10
+ {{ post.content | strip_html | truncatewords: 30 }}
11
+ </ p >
12
+ </ div >
13
+ </ li >
Original file line number Diff line number Diff line change 30
30
31
31
border-top : 3px solid rgba ($color-black , 0.1 );
32
32
padding-top : 30px ;
33
+ display : flex ;
34
+ gap : 30px ;
33
35
34
- p {
36
+
37
+
38
+ .post-date {
39
+ flex : 1 ;
40
+
41
+ p {
35
42
font-size : 21px ;
36
43
font-weight : 600 ;
37
44
letter-spacing : -0.006em ;
38
45
line-height : 26px ;
39
46
margin-top : -7px ;
47
+ }
40
48
}
41
49
42
- dl {
43
-
50
+ .post-container {
51
+ flex : 3 ;
44
52
margin-bottom : -6px ;
45
53
margin-top : 1px ;
46
54
62
70
}
63
71
64
72
}
65
-
66
73
}
67
74
68
- dd {
75
+ p {
69
76
70
77
color : $color-grey-5 ;
71
78
font-size : 21px ;
117
124
gap : 30px ;
118
125
padding-top : 40px ;
119
126
120
- p {
121
- flex : 1 ;
122
- margin-top : -1px ;
127
+ .post-date {
128
+ p {
129
+ flex : 1 ;
130
+ margin-top : -1px ;
131
+ }
123
132
}
124
133
125
- dl {
134
+
135
+ .post-container {
126
136
flex : 3 ;
127
137
margin-top : -8px ;
128
138
}
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ <h1>The Rails Blog: News & Release Notes</h1>
34
34
35
35
< div class ="blog common-padding--bottom ">
36
36
< div class ="container ">
37
- < div class ="blog__posts ">
37
+ < ul class ="blog__posts ">
38
38
{% for post in paginator.posts %}
39
39
{% include post.html %}
40
40
{% endfor %}
41
- </ div >
41
+ </ ul >
42
42
43
43
{% if paginator.next_page %}
44
44
< div class ="blog__pagination ">
You can’t perform that action at this time.
0 commit comments