From 371077ff92bb647ad694c3de4ad4b75757b8ebd4 Mon Sep 17 00:00:00 2001 From: Kim J <73549165+KimJ15@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:17:19 -0500 Subject: [PATCH] Revert "[Docs Site] Don't show breadcrumbs on /products/ (#17240)" This reverts commit 72bfe6aa9f057edbd0a0a1eb09152a54b93c1d37. --- src/components/overrides/PageTitle.astro | 42 ++++++++++-------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/src/components/overrides/PageTitle.astro b/src/components/overrides/PageTitle.astro index f776155ae597bf..ef13193eb1b2a7 100644 --- a/src/components/overrides/PageTitle.astro +++ b/src/components/overrides/PageTitle.astro @@ -19,10 +19,6 @@ const updated = Astro.props.entry.data.updated; const badge = Astro.props.entry.data.sidebar?.badge; const summary = Astro.props.entry.data.summary; -const slug = Astro.props.entry.slug; - -const showBreadcrumbs = !["products"].includes(slug); - const breadcrumbProps: Record = { crumbs: [ { @@ -34,6 +30,8 @@ const breadcrumbProps: Record = { id: "breadcrumbs", }; +const slug = Astro.props.entry.slug; + const segments = slug.split("/"); for (let i = 0; i < segments.length; i++) { @@ -75,27 +73,21 @@ for (let i = 0; i < segments.length; i++) { const hideTitle = Astro.props.hideTitle; --- -{ - showBreadcrumbs && ( - - - - - - ) -} - + + + + {!hideTitle && } {badge && }