From f4f3cb4e91dfe3bb128e7aa1da555e755aa935e2 Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Mon, 20 Apr 2026 12:48:10 -0500 Subject: [PATCH] Fix styling issue with toc and search regression --- _includes/layouts/base.njk | 25 ++++++++++++++++--------- content/tags/tag-page-generator.njk | 1 + public/css/toc.css | 5 +++++ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 259f2df..56f981e 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -63,19 +63,26 @@ {% include "header.njk" %}
{% if includeTOC %} -
-
-

{{ h1 }}

-
- Table of Contents - {{ content | toc(tags=['h2', 'h3', 'h4'], wrapper='div') | removeHash | safe }} -
-
-
+
+
+

{{ h1 }}

+
+
+ Table of Contents + {{ content | toc(tags=['h2', 'h3', 'h4'], wrapper='div') | removeHash | safe }} +
+
+
+ {{ content | safe }} +
+
+
{% endif %} + {% if not includeTOC %}
{{ content | safe }}
+ {% endif %}
{% include "footer.njk" %} {% include "weather.njk" %} diff --git a/content/tags/tag-page-generator.njk b/content/tags/tag-page-generator.njk index eef5e62..526918c 100644 --- a/content/tags/tag-page-generator.njk +++ b/content/tags/tag-page-generator.njk @@ -10,6 +10,7 @@ pagination: - galleryImages - post - posts + - profilepic - tagList - tags - feed diff --git a/public/css/toc.css b/public/css/toc.css index f37abb0..0d57c18 100644 --- a/public/css/toc.css +++ b/public/css/toc.css @@ -1,5 +1,10 @@ +details.toc { + padding-bottom: var(--space-m); +} + .toc { & ol { + margin-bottom: 0; margin-top: 0; padding-left: var(--space-m); }