Skip to content

Commit b5b00a8

Browse files
committed
up
1 parent d23b30d commit b5b00a8

File tree

2 files changed

+51
-48
lines changed

2 files changed

+51
-48
lines changed

archive.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ <h1>Archive</h1>
88
{% for post in site.posts %}
99

1010
<div>
11-
{{ post.date | date: "%b %-d, %Y" }}
12-
»
13-
<a href="{{ site.url }}{{ post.url }}">
14-
{{ post.title }}
15-
</a>
11+
<span class='post-date'>
12+
{{ post.date | date: "%b %-d, %Y" }}
13+
»
14+
</span>
15+
<span class='post-title'>
16+
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
17+
</span>
1618
</div>
1719

1820
{% endfor %}

css/style.scss

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
html {
1212
font-family: $font-family;
13-
font-size: 20px;
13+
font-size: 20px;
1414
line-height: 1.5;
1515
}
1616

@@ -19,9 +19,8 @@ body {
1919
background-color: $body-background-color;
2020
}
2121

22-
/**************
23-
* Links
24-
*/
22+
//////////////
23+
// Links
2524

2625
a {
2726
color: $link-color;
@@ -38,15 +37,14 @@ a {
3837
}
3938

4039

41-
/******************************
42-
* Headings
43-
*/
40+
////////////////////////////
41+
// Headings
4442

4543
h1, h2, h3, h4, h5, h6 {
46-
margin-bottom: .5rem;
47-
font-weight: bold;
48-
line-height: 1.25;
49-
color: $headings-color;
44+
margin-bottom: .5rem;
45+
font-weight: bold;
46+
line-height: 1.25;
47+
color: $headings-color;
5048
text-rendering: optimizeLegibility;
5149
}
5250
h1 {
@@ -65,9 +63,8 @@ h4, h5, h6 {
6563
font-size: 1rem;
6664
}
6765

68-
/********************
69-
* Body text
70-
*/
66+
/////////////
67+
// Body text
7168

7269
p {
7370
margin-top: 0;
@@ -78,7 +75,10 @@ strong {
7875
color: $strong-color;
7976
}
8077

81-
/* Lists */
78+
79+
/////////////
80+
// Lists
81+
8282
ul, ol, dl {
8383
margin-top: 0;
8484
margin-bottom: 1rem;
@@ -92,9 +92,8 @@ dd {
9292
}
9393

9494

95-
/**********************
96-
* Code
97-
*/
95+
//////////////////////
96+
// Code
9897

9998
code,
10099
pre {
@@ -122,7 +121,9 @@ pre {
122121
}
123122

124123

125-
/* Quotes */
124+
/////////////////////
125+
// Quotes
126+
126127
blockquote {
127128
padding: .5rem 1rem;
128129
margin: .8rem 0;
@@ -142,9 +143,10 @@ img {
142143
border-radius: 5px;
143144
}
144145

145-
/*****************
146-
* Tables
147-
*/
146+
147+
//////////////////////
148+
// Tables
149+
148150
table {
149151
margin-bottom: 1rem;
150152
width: 100%;
@@ -165,10 +167,9 @@ table {
165167

166168

167169

168-
/*************************
169-
* Container
170-
* -- Center the page content.
171-
*/
170+
////////////////////////////////
171+
// Container
172+
// -- centers page content
172173

173174
.container {
174175
max-width: 38rem;
@@ -178,9 +179,8 @@ table {
178179
margin-right: auto;
179180
}
180181

181-
/*******************************
182-
* Masthead
183-
*/
182+
///////////////////////////////////////////////////
183+
// Masthead
184184

185185
.masthead {
186186
padding-top: 1rem;
@@ -206,29 +206,30 @@ table {
206206
}
207207

208208

209-
/**************************
210-
* Posts
211-
*/
209+
//////////////////////////
210+
// Posts
212211

213212
.post {
214213
margin-bottom: 4em;
214+
215+
// note: only change margin for title,date if inside post block
216+
.post-title {
217+
margin-top: 0;
218+
}
219+
220+
// Meta data line below post title
221+
.post-date {
222+
display: block;
223+
margin-top: -.5rem;
224+
margin-bottom: 1rem;
225+
}
215226
}
216227

217-
/* Blog title */
218228
.post-title,
219229
.post-title a {
220230
color: $post-title-color;
221231
}
222232

223-
.post-title {
224-
margin-top: 0;
225-
}
226-
227-
/* Meta data line below post title */
228233
.post-date {
229-
display: block;
230-
margin-top: -.5rem;
231-
margin-bottom: 1rem;
232-
color: $post-date-color;
234+
color: $post-date-color;
233235
}
234-

0 commit comments

Comments
 (0)