Fix styling issue with toc and search regression
This commit is contained in:
@@ -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" %}
|
||||
|
||||
Reference in New Issue
Block a user