diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index 6571c1c..56317de 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -21,9 +21,13 @@ if (!homePage) { ---
- - {homePage.data.title} - + { + ![`/${baseUrl}/`, '/'].includes(Astro.url.pathname) && ( + + {homePage.data.title} + + ) + } { pages .filter((page) => page.id !== homePage.id)