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-size: $size-2;
|
||||||
font-weight: $weight-bold;
|
font-weight: $weight-bold;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
margin-top: 2em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
<section class="container">
|
<section class="container">
|
||||||
{% for page in listing_pages %}
|
{% for page in listing_pages %}
|
||||||
{% ifchanged %}
|
{% ifchanged %}
|
||||||
|
<h3 id="{{ page.date|date:'Y-m' }}" class="date-header">
|
||||||
<time datetime="{{ page.date|date:'Y-m' }}" title='{{ page.date|date:"F Y" }}'>
|
<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>
|
{{ page.date|date:"Y-m" }}
|
||||||
</time>
|
</time>
|
||||||
|
</h3>
|
||||||
{% endifchanged %}
|
{% endifchanged %}
|
||||||
|
|
||||||
{% include "common/listing-item.html" %}
|
{% include "common/listing-item.html" %}
|
||||||
|
|
Loading…
Reference in a new issue