Skip to content

Commit d341fa0

Browse files
committed
Fix vertical rhythm of post dates
1 parent 9b5ba09 commit d341fa0

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

_layouts/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313

1414
{% for post in site.posts %}
1515
<h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
16-
<small>
17-
<time datetime="{{ post.date | date:'%Y-%m-%d' }}">
18-
{{ post.date | date:'%A, %-d %B, %Y' }}
19-
</time>
20-
</small>
16+
<p class="subtitle">
17+
<small>
18+
<time datetime="{{ post.date | date:'%Y-%m-%d' }}">
19+
{{ post.date | date:'%A, %-d %B, %Y' }}
20+
</time>
21+
</small>
22+
</p>
2123
{% endfor %}

_layouts/post.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
---
44

55
<h2>{{ page.title }}</h2>
6-
<small>
7-
<time datetime="{{ page.date | date:'%Y-%m-%d' }}">
8-
{{ page.date | date:'%A, %-d %B, %Y' }}
9-
</time>
10-
</small>
6+
<p class="subtitle">
7+
<small>
8+
<time datetime="{{ page.date | date:'%Y-%m-%d' }}">
9+
{{ page.date | date:'%A, %-d %B, %Y' }}
10+
</time>
11+
</small>
12+
</p>
1113

1214
<section class="post-body">
1315
{{ content }}

css/site.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ div.project {
3636
padding-right: 1ch;
3737
}
3838

39-
/* Footnotes */
39+
/* Posts */
40+
41+
p.subtitle { margin-top: 0; }
42+
4043
.post-body ol:last-child {
4144
padding-top: 2em;
4245
font-size: 0.85em;

0 commit comments

Comments
 (0)