diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index 19be069..458be58 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -2,9 +2,10 @@ interface Props { headings: Array<{ depth: number; slug: string; text: string }> label: string + title?: string } -const { headings, label } = Astro.props +const { headings, label, title } = Astro.props const tocHeadings = headings.filter((h) => h.depth === 2 || h.depth === 3) --- @@ -23,6 +24,17 @@ const tocHeadings = headings.filter((h) => h.depth === 2 || h.depth === 3) style="top: 0; left: -9px;" />