Skip to content

Commit

Permalink
Don't show footnote label in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Jan 4, 2025
1 parent 7b41164 commit 3a45a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/blog/Toc.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const { headings } = Astro.props;
<ul>
{
headings
.filter((heading) => heading.depth < 4)
.filter((heading) => heading.depth < 4 && heading.slug !== "footnote-label")
.map(({ slug, text, depth }) => (
<li>
<a id={`toc-${slug}`} href={`#${slug}`}>
Expand Down

0 comments on commit 3a45a27

Please sign in to comment.