From 752c54eb6320950ee0d591a6404de2ef43560c7d Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sun, 25 Jul 2021 17:14:12 +0200 Subject: Use h3 for "Mentioned posts" An upcoming post will (finally) make use of the "mentions" feature. Whilst working on that post we noticed that the header indicating mentioned posts is a big too big and clashes even with the site title. h3 should be better suited for this purpose. Since the default margins are slightly different from h2, make sure to tweak the stylesheet too. --- sass/style.sass | 4 ++-- templates/page.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sass/style.sass b/sass/style.sass index 44fe8f1..e800b14 100644 --- a/sass/style.sass +++ b/sass/style.sass @@ -56,8 +56,8 @@ a.bold-hover:hover text-decoration: none text-shadow: 0px 0px 1px var(--fg-href) -h2.mentions - margin-bottom: .2rem +h3.mentions + margin: 0 h2.title display: inline-block diff --git a/templates/page.html b/templates/page.html index ac9a458..c11c1da 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,7 +3,7 @@ {%- block content %} {{ macros::render_post(post=page, class="single") }} {%- if "mentions" in page.extra and page.extra.mentions | length > 0 -%} -