Improve margin around blog post date headers
This commit is contained in:
parent
bccc948995
commit
6c481672c4
2 changed files with 9 additions and 3 deletions
|
@ -41,6 +41,10 @@
|
|||
font-size: $size-2;
|
||||
font-weight: $weight-bold;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
&:not(:first-child) {
|
||||
margin-top: 2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in a new issue