Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix(docs): restore homepage logo (#6183)

Mostafa Nazari06e81a800356
diff --git a/docs/src/components/PageTitle.astro b/docs/src/components/PageTitle.astro
index ee134062..26289560 100644
--- a/docs/src/components/PageTitle.astro
+++ b/docs/src/components/PageTitle.astro
@@ -1,12 +1,9 @@
---
import Default from "@astrojs/starlight/components/PageTitle.astro";
-import type { ComponentProps } from "astro/types";
import HomepagePageTitle from "./HomepagePageTitle.astro";
-type Props = ComponentProps<typeof Default>;
-
-const isHomepage = Astro.props.slug === "";
+const isHomepage = Astro.locals.starlightRoute.id === "";
---
-{isHomepage ? <HomepagePageTitle /> : <Default {...Astro.props} />}
+{isHomepage ? <HomepagePageTitle /> : <Default />}