From 40f956821d288402b415f52c3362d41c45172d2f Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 5 Apr 2022 22:18:18 +0000 Subject: [PATCH] blog-entry: better date placement --- sass/static/style.scss | 4 ++++ templates/blog-page.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sass/static/style.scss b/sass/static/style.scss index 16d252d..1592ee0 100644 --- a/sass/static/style.scss +++ b/sass/static/style.scss @@ -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 diff --git a/templates/blog-page.html b/templates/blog-page.html index 17ce874..146c76b 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -17,7 +17,7 @@

{{ page.title }}

-

{{ page.date | date(format="%Y/%m/%d") }}

+

{{ page.date | date(format="%Y/%m/%d") }}

{{ page.content | safe }}