summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2021-07-25 17:14:12 +0200
committerWolfgang Müller2021-07-25 17:14:12 +0200
commit752c54eb6320950ee0d591a6404de2ef43560c7d (patch)
tree02fa30ac1bd9d4ccfd433ee05d3cd5ca519667f7
parentfe62e870c1389f9e25a9eaba96961b067aa9c2ed (diff)
downloadzunzuncito-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.
-rw-r--r--sass/style.sass4
-rw-r--r--templates/page.html2
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") }}