blog-entry: better date placement

This commit is contained in:
Colin 2022-04-05 22:18:18 +00:00
parent 442a9237ed
commit 40f956821d
2 changed files with 5 additions and 1 deletions

View File

@ -214,6 +214,8 @@ body
.date
{
font-style: normal;
// dates should be able to render as subtitles below headings, gapless
margin-top: 0;
}
header, h1, h2, h3
@ -247,6 +249,8 @@ body
header + * > h1
{
margin-top: 0;
// since it's followed by the date, it shouldn't enforce a bottom margin either
margin-bottom: 0.5rem;
}
.body-text

View File

@ -17,7 +17,7 @@
<h1>
{{ page.title }}
</h1>
<p><strong>{{ page.date | date(format="%Y/%m/%d") }}</strong></p>
<p class="date">{{ page.date | date(format="%Y/%m/%d") }}</p>
{{ page.content | safe }}