Skip to content

Commit 911cd18

Browse files
committed
Remove depth from toc
1 parent 585e9d3 commit 911cd18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/components/TableOfContents.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const filteredHeadings = headings.filter((heading) => heading.depth <= 3);
1616
{
1717
filteredHeadings.map((heading) => (
1818
<li class={`${heading.depth === 3 && "pl-5"}`}>
19-
<a href={`#${heading.slug}`}>{heading.text} {heading.depth}</a>
19+
<a href={`#${heading.slug}`}>{heading.text}</a>
2020
</li>
2121
))
2222
}

0 commit comments

Comments
 (0)