Skip to content

Commit 35e852d

Browse files
Merge pull request #1440 from redis/toc-h1-fix
Update docs-toc.html
2 parents 7ad9ceb + 112ada3 commit 35e852d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/docs-toc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ partial "meta-links.html" $this }}
1515
<!-- Combines current file's headers with embed headers since .TableOfContents doesn't include embed headers. Front matter must include "tocEmbedHeaders: true". -->
1616
{{ if and $showEmbedHeaders $has_headers }}
17-
<h1 class="font-medium my-3">On this page</h1>
17+
<h2 class="font-medium my-3">On this page</h2>
1818
<nav class="text-slate-700">
1919
<nav id="TableOfContents">
2020
{{ $prevLevel := 1 }}
@@ -40,7 +40,7 @@ <h1 class="font-medium my-3">On this page</h1>
4040
</nav>
4141
<!-- Use Hugo's .TableOfContents by default -->
4242
{{ else if gt (len .) 32 }}
43-
<h1 class="font-medium my-3">On this page</h1>
43+
<h2 class="font-medium my-3">On this page</h2>
4444
<nav class="text-slate-700">
4545
{{ . }}
4646
</nav>

0 commit comments

Comments
 (0)