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" %}
|
||||
|
||||
@@ -10,6 +10,7 @@ pagination:
|
||||
- galleryImages
|
||||
- post
|
||||
- posts
|
||||
- profilepic
|
||||
- tagList
|
||||
- tags
|
||||
- feed
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
details.toc {
|
||||
padding-bottom: var(--space-m);
|
||||
}
|
||||
|
||||
.toc {
|
||||
& ol {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
padding-left: var(--space-m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user