Skip to content

Commit 3a45a27

Browse files
committed
Don't show footnote label in TOC
1 parent 7b41164 commit 3a45a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/blog/Toc.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const { headings } = Astro.props;
4141
<ul>
4242
{
4343
headings
44-
.filter((heading) => heading.depth < 4)
44+
.filter((heading) => heading.depth < 4 && heading.slug !== "footnote-label")
4545
.map(({ slug, text, depth }) => (
4646
<li>
4747
<a id={`toc-${slug}`} href={`#${slug}`}>

0 commit comments

Comments
 (0)