diff options
author | Wolfgang Müller | 2021-07-25 17:14:12 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-07-25 17:14:12 +0200 |
commit | 752c54eb6320950ee0d591a6404de2ef43560c7d (patch) | |
tree | 02fa30ac1bd9d4ccfd433ee05d3cd5ca519667f7 | |
parent | fe62e870c1389f9e25a9eaba96961b067aa9c2ed (diff) | |
download | zunzuncito-752c54eb6320950ee0d591a6404de2ef43560c7d.tar.gz |
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.
Diffstat (limited to '')
-rw-r--r-- | sass/style.sass | 4 | ||||
-rw-r--r-- | 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 -%} -<h2 class="mentions">Mentioned posts</h2> +<h3 class="mentions">Mentioned posts</h2> {%- for ref in page.extra.mentions %} {%- set page = get_page(path=ref ~ "/index.md") -%} {{ macros::render_post(post=page, class="mention") }} |