Improve margin around blog post date headers

This commit is contained in:
Jake Howard 2022-09-21 14:18:35 +01:00
parent bccc948995
commit 6c481672c4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 3 deletions

View File

@ -41,6 +41,10 @@
font-size: $size-2;
font-weight: $weight-bold;
margin-bottom: 1rem;
&:not(:first-child) {
margin-top: 2em;
}
}
}

View File

@ -4,9 +4,11 @@
<section class="container">
{% for page in listing_pages %}
{% ifchanged %}
<time datetime="{{ page.date|date:'Y-m' }}" title='{{ page.date|date:"F Y" }}'>
<h3 id="{{ page.date|date:'Y-m' }}" class="date-header">{{ page.date|date:"Y-m" }}</h3>
</time>
<h3 id="{{ page.date|date:'Y-m' }}" class="date-header">
<time datetime="{{ page.date|date:'Y-m' }}" title='{{ page.date|date:"F Y" }}'>
{{ page.date|date:"Y-m" }}
</time>
</h3>
{% endifchanged %}
{% include "common/listing-item.html" %}