Fix styling issue with toc and search regression

This commit is contained in:
2026-04-20 12:48:10 -05:00
parent 72f8eee9cd
commit f4f3cb4e91
3 changed files with 22 additions and 9 deletions

View File

@@ -63,19 +63,26 @@
{% include "header.njk" %}
<main id="skip">
{% if includeTOC %}
<section>
<article data-pagefind-body>
<h1>{{ h1 }}</h1>
<details class="toc">
<summary>Table of Contents</summary>
{{ content | toc(tags=['h2', 'h3', 'h4'], wrapper='div') | removeHash | safe }}
</details>
</article>
</section>
<section>
<article data-pagefind-body>
<h1>{{ h1 }}</h1>
<section>
<details class="toc">
<summary>Table of Contents</summary>
{{ content | toc(tags=['h2', 'h3', 'h4'], wrapper='div') | removeHash | safe }}
</details>
</section>
<section>
{{ content | safe }}
</section>
</article>
</section>
{% endif %}
{% if not includeTOC %}
<section>
{{ content | safe }}
</section>
{% endif %}
</main>
{% include "footer.njk" %}
{% include "weather.njk" %}