File tree Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Expand file tree Collapse file tree 3 files changed +31
-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 " style ="flex:1 ">
3
+ < p > {{ post.date | date: '%B %-d, %Y' }}</ p >
4
+ </ div >
5
+ < div class ="post-container " style ="flex:3 ">
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
+ p {
35
40
font-size : 21px ;
36
41
font-weight : 600 ;
37
42
letter-spacing : -0.006em ;
38
43
line-height : 26px ;
39
44
margin-top : -7px ;
45
+ }
40
46
}
41
47
42
- dl {
43
-
48
+ .post-container {
44
49
margin-bottom : -6px ;
45
50
margin-top : 1px ;
46
51
62
67
}
63
68
64
69
}
65
-
66
70
}
67
71
68
- dd {
72
+ p {
69
73
70
74
color : $color-grey-5 ;
71
75
font-size : 21px ;
117
121
gap : 30px ;
118
122
padding-top : 40px ;
119
123
120
- p {
121
- flex : 1 ;
122
- margin-top : -1px ;
124
+ .post-date {
125
+ p {
126
+ flex : 1 ;
127
+ margin-top : -1px ;
128
+ }
123
129
}
124
130
125
- dl {
131
+
132
+ .post-container {
126
133
flex : 3 ;
127
134
margin-top : -8px ;
128
135
}
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